Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion REGRESSION/resources/config-ci-regression-mobile.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<tag name="wait" enabled="false"/>

<!-- API -->
<tag name="api" enabled="false"/>
<tag name="http" enabled="false"/>
<tag name="websocket" enabled="false"/>
<tag name="graphql" enabled="false"/>
<tag name="auth-basic-mixed" enabled="false"/>
Expand Down
2 changes: 1 addition & 1 deletion REGRESSION/resources/config-ci-regression-windows.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<tag name="wait" enabled="true"/>

<!-- API -->
<tag name="api" enabled="false"/>
<tag name="http" enabled="false"/>
<tag name="websocket" enabled="false"/>
<tag name="graphql" enabled="false"/>
<tag name="auth-basic-mixed" enabled="false"/>
Expand Down
2 changes: 1 addition & 1 deletion REGRESSION/resources/config-ci-regression.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<tag name="wait" enabled="true"/>

<!-- API -->
<tag name="api" enabled="true"/>
<tag name="http" enabled="true"/>
<tag name="websocket" enabled="true"/>
<tag name="graphql" enabled="true"/>
<tag name="auth-basic-mixed" enabled="true"/>
Expand Down
2 changes: 1 addition & 1 deletion REGRESSION/resources/config-local.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<tag name="wait" enabled="true"/>

<!-- API -->
<tag name="api" enabled="false"/>
<tag name="http" enabled="false"/>
<tag name="websocket" enabled="false"/>
<tag name="graphql" enabled="false"/>
<tag name="auth-basic-mixed" enabled="false"/>
Expand Down
8 changes: 8 additions & 0 deletions REGRESSION/resources/data/javascript/increment.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const input = document.querySelector('input[placeholder="Input 1"]');

let count = parseInt(input.value);
if (isNaN(count)) {
count = 0;
}

input.value = count + 1;
1 change: 1 addition & 0 deletions REGRESSION/resources/data/javascript/set_false.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
document.querySelector('input[placeholder="Input 1"]').value = 'FALSE_EXECUTED';
1 change: 1 addition & 0 deletions REGRESSION/resources/data/javascript/set_true.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
document.querySelector('input[placeholder="Input 1"]').value = 'TRUE_EXECUTED';
2 changes: 2 additions & 0 deletions REGRESSION/resources/data/javascript/set_value.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const input = document.querySelector('input[placeholder="Input 1"]');
input.value = 'JS_VALUE';
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
navigateComment,path,clickComment,button,alertComment,action
Navigate to modal,/modal,Click alert,modal.alertBtn,Accept alert,accept
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
navigateComment,path,clickComment,clickLocator,waitComment,assertComment,alertComment,expectedText,cleanupComment
Navigate to modal page,/modal,Click alert button,modal.alertBtn,Wait for alert,Verify alert,Check alert text,Alert! You are not Nazar,Close alert
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requestComment,attributeComment,locator,attributeName,value
Check input type,Compare attribute,forms.type,type,password
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
navigateComment,path,beforeAssertComment,beforeCheckedComment,clickComment,afterAssertComment,afterCheckedComment,locator
Navigate to checkbox page,/ui-elements,Check initial state,Checkbox should NOT be selected,Click checkbox,Check state after click,Checkbox should be selected,uiElements.checkbox
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requestComment,varComment,attributeName,equalComment,locator,value1
Check dashboard title,Get title from UI,innerText,Compare dashboard values,//h3,Dashboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requestComment,varComment,attributeName,notEqualComment,locator,value2
Check dashboard mismatch,Get title from UI,innerText,Compare different,//h3,INVALID
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
navigateComment,path,requestComment,presentComment,locator
Navigate to 'tables page' for apply the 'assert' command,/forms,Check present element,Element exists,forms.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requestComment,titleComment,value
Check dashboard title,Compare title,V-Dashboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
navigateComment,path,inputComment,locator,value,clearComment,assertComment,notEqualComment
Navigate to forms page,/forms,Enter value into field,forms.username,TestUser,Clear field,Verify clear execution,Value should not equal predefined string
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webComment,navigateComment,path,clickComment,locator,waitAfterClickComment,waitAfterClick,assertDashboardComment,dashboardAttributeComment,dashboardLocator,dashboardText
Start WEB script,Navigate to login page,/,Click Sign In,login.signIn,Wait after click,1,Verify dashboard,Check dashboard header,dashboard.title,Dashboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webComment,navigateComment,path,beforeAssertComment,beforePresentComment,buttonLocator,resultLocator,doubleClickComment,waitAfterClickComment,waitAfterClick,afterAssertComment,afterPresentComment
Start WEB script,Navigate to UI Elements page,/ui-elements,Verify result is not visible before action,Result should not be visible,uiElements.doubleClickBtn,uiElements.doubleClickResult,Perform double click on button,Wait after double click,1,Verify result is visible after action,Result should be visible
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webComment,clickComment,clickLocator,waitComment,waitTime,dragComment,dropLocator,fileName,assertComment,attributeComment,attributeName,resultLocator,expected
Start WEB script,Open Developer Board,sideBar.developerBoard1,Wait page load,1,Upload file via drop zone,developerBoard.selectFileDropZone,upload_dropZone.png,Verify uploaded file,Check uploaded file name,innerHTML,developerBoard.fileDropZone,File: upload_dropZone.png
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
webComment,navigateComment,path,waitComment,waitTime,dropDownComment,locator,type,by,value,assertComment,attributeComment,attributeName,resultLocator,expected
Start WEB script,Navigate to UI Elements page,/ui-elements,Wait for page load,1,Select value One,uiElements.singleSelect,select,text,One,Verify selected value,Check selected value,innerHTML,uiElements.singleResult,Selected value: 1
Start WEB script,Navigate to UI Elements page,/ui-elements,Wait for page load,1,Select value Two,uiElements.singleSelect,select,text,Two,Verify selected value,Check selected value,innerHTML,uiElements.singleResult,Selected value: 2
Start WEB script,Navigate to UI Elements page,/ui-elements,Wait for page load,1,Select value Three,uiElements.singleSelect,select,text,Three,Verify selected value,Check selected value,innerHTML,uiElements.singleResult,Selected value: 3
4 changes: 4 additions & 0 deletions REGRESSION/resources/data/variations/ui/hotkey/hotkey.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
webComment,navigateComment,waitComment,waitTime,inputComment,highlightComment,copyComment,pasteComment,assertComment,attributeComment,input1,input2,value,expected
Start WEB script,Navigate to UI Elements page,Wait page load,1,Fill source input,Highlight text,Copy text,Paste text,Verify result,Check pasted value,uiElements.hotKeyInput1,uiElements.hotKeyInput2,HELLO,HELLO
Start WEB script,Navigate to UI Elements page,Wait page load,1,Fill source input,Highlight text,Copy text,Paste text,Verify result,Check pasted value,uiElements.hotKeyInput1,uiElements.hotKeyInput2,WORLD,WORLD
Start WEB script,Navigate to UI Elements page,Wait page load,1,Fill source input,Highlight text,Copy text,Paste text,Verify result,Check pasted value,uiElements.hotKeyInput1,uiElements.hotKeyInput2,TEST123,TEST123
2 changes: 2 additions & 0 deletions REGRESSION/resources/data/variations/ui/hover/hover.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webComment,navigateComment,waitComment,hoverComment,assertComment,attributeComment,attributeName,targetLocator,resultLocator,expected
Start WEB script,Navigate to UI Elements page,Wait for page load,Hover over element,Verify hover result,Check hover state,innerText,uiElements.hoverTarget,uiElements.hoverResult,Hover status: true
3 changes: 3 additions & 0 deletions REGRESSION/resources/data/variations/ui/image/image_part.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
webComment,navigateComment,waitComment,waitTime,scrollComment,imageComment,locator,file,percentage
Start WEB script,Navigate to UI Elements page,Wait for page load,2,Scroll to image block,Compare image part 99.9,uiElements.testImage,image_part.png,99.9
Start WEB script,Navigate to UI Elements page,Wait for page load,2,Scroll to image block,Compare image part 99.5,uiElements.testImage,image_part.png,99.5
4 changes: 4 additions & 0 deletions REGRESSION/resources/data/variations/ui/input/input.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
webComment,navigateComment,waitComment,waitTime,inputComment,assertComment,attributeComment,locator,value,highlight
Start WEB script,Navigate to UI Elements page,Wait for page load,2,Input HELLO with highlight,Verify HELLO,Check value,uiElements.hotKeyInput1,HELLO,true
Start WEB script,Navigate to UI Elements page,Wait for page load,2,Input WORLD without highlight,Verify WORLD,Check value,uiElements.hotKeyInput1,WORLD,false
Start WEB script,Navigate to UI Elements page,Wait for page load,2,Input TEST value,Verify TEST,Check value,uiElements.hotKeyInput2,TEST,true
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webComment,navigateComment,path,waitComment,waitTime,jsComment,assertComment,attributeComment,locator,file,expected
Start WEB script,Navigate to UI Elements page,/ui-elements,Wait for page load,2,Execute JS file 1,Verify result 1,Check value,uiElements.hotKeyInput1,set_value_1.js,JS_VALUE
2 changes: 2 additions & 0 deletions REGRESSION/resources/data/variations/ui/navigate/navigate.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webComment,navigateComment,path,waitComment,waitTime,assertComment,attributeComment,locator,expected
Start WEB script,Navigate to UI Elements page,/ui-elements,Wait for page load,2,Verify UI Elements page,Check header text,uiElements.title,UI Elements
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
navigateComment,path,waitComment,waitTime,assertComment,attributeComment,locator,expected
Navigate to UI Elements page,/ui-elements,Wait for page load,2,Verify UI Elements page,Check header,uiElements.title,UI Elements
Navigate to Forms page,/forms,Wait for page load,2,Verify Forms page,Check header,forms.title,Forms
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
value,expected
A,A
B,B
C,C
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webComment,navigateComment,path,waitComment,waitTime,scrollComment,assertComment,presentComment,scrollValue,locator
Start WEB script,Navigate to Scroll Test page,/scroll-test,Wait for page load,2,Scroll 60 percent,Verify scroll 60,Check bottom visible,60,scrollTest.pageBottom
3 changes: 3 additions & 0 deletions REGRESSION/resources/data/variations/ui/scrollTo/scrollTo.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
webComment,navigateComment,path,waitComment,waitTime,scrollToComment,assertComment,attributeComment,locator
Start WEB script,Navigate to Scroll Test page,/scroll-test,Wait for page load,2,Scroll to bottom element,Verify bottom reached,Check bottom visible,scrollTest.pageBottom
Start WEB script,Navigate to Scroll Test page,/scroll-test,Wait for page load,2,Scroll to middle element,Verify middle reached,Check middle visible,scrollTest.innerMiddle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
webComment,navigateComment,path,waitComment,waitTime,scrollComment,switchComment,clickComment,assertComment,attributeComment,frameLocator,buttonLocator,resultLocator,expected
Start WEB script,Navigate to UI Elements page,/ui-elements,Wait for page load,2,Scroll to iframe,Switch to iframe,Click button inside frame,Verify result,Check text,uiElements.testFrame,uiElements.frameButton,uiElements.frameResult,Clicked!
Start WEB script,Navigate to UI Elements page,/ui-elements,Wait for page load,2,Scroll to iframe again,Switch again,Click again,Verify again,Check text again,uiElements.testFrame,uiElements.frameButton,uiElements.frameResult,Clicked!
4 changes: 4 additions & 0 deletions REGRESSION/resources/data/variations/ui/tab/tabRepeat.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tabComment,url
Open UI Elements,/ui-elements
Open Forms,/forms
Open UI Elements again,/ui-elements
2 changes: 2 additions & 0 deletions REGRESSION/resources/data/variations/ui/tab/tabVariation.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webComment,navigateComment,waitComment,tabComment,waitAfterOpen,assertComment,attributeComment,path,url,locator,expected,time
Start WEB script,Navigate to Forms page,Wait before actions,Open tab using variation URL,Wait after tab open,Verify opened page,Check page content,/forms,/ui-elements,uiElements.title,UI Elements,2
4 changes: 4 additions & 0 deletions REGRESSION/resources/data/variations/ui/var/varVariation.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
webComment,navigateComment,waitComment,waitTime,varComment,varName,value,inputComment,locator,assertComment,attributeComment,attributeName,path
Start WEB script with CSV,Navigate to UI Elements page,Wait for page load,2,Create variable from CSV,dynamicVar,HELLO,Input HELLO value,uiElements.hotKeyInput1,Verify HELLO value,Check attribute value,value,/ui-elements
Start WEB script with CSV,Navigate to UI Elements page,Wait for page load,2,Create variable from CSV,dynamicVar,WORLD,Input WORLD value,uiElements.hotKeyInput1,Verify WORLD value,Check attribute value,value,/ui-elements
Start WEB script with CSV,Navigate to UI Elements page,Wait for page load,2,Create variable from CSV,dynamicVar,TEST123,Input TEST123 value,uiElements.hotKeyInput1,Verify TEST123 value,Check attribute value,value,/ui-elements
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
webComment,navigateComment,waitComment,initialWait,preCheckComment,inputComment,clickComment,waitActionComment,assertComment,path,time,timeLocator,startLocator,resultLocator
Start WEB script,Navigate to UI Elements,Wait for page load,2,Verify result not visible,Set wait time,Click start button,Wait using variation,Verify result visible,/ui-elements,1,uiElements.waitTime,uiElements.waitStart,uiElements.waitResult
Start WEB script,Navigate to UI Elements,Wait for page load,2,Verify result not visible,Set wait time,Click start button,Wait using variation,Verify result visible,/ui-elements,2,uiElements.waitTime,uiElements.waitStart,uiElements.waitResult
4 changes: 4 additions & 0 deletions REGRESSION/resources/locators/pages/browser/modal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
<xpath>.//button[text()= ' Open Modal ']</xpath>
</locator>

<locator locatorId="closeModalBtn">
<xpath>//*[@id="app"]/div/div[2]/main/div/div/div/div[2]/div[2]/div[2]/button[1]</xpath>
</locator>

<locator locatorId="assertExit">
<xpath>.//div[contains(@class,"modal opacity-0 pointer-events-none z-50 fixed w-full h-full")]</xpath>
</locator>
Expand Down
43 changes: 43 additions & 0 deletions REGRESSION/resources/locators/pages/browser/scrollTest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.knubisoft.com/testlum/testing/model/pages"
xsi:schemaLocation="http://www.knubisoft.com/testlum/testing/model/pages pages.xsd">

<details>
<name>ScrollTest</name>
<url>/scroll-test</url>
<description>Locators for scroll test page</description>
</details>

<locators>

<locator locatorId="inner">
<cssSelector>[data-test="scroll-inner"]</cssSelector>
</locator>

<locator locatorId="innerTop">
<cssSelector>[data-test="inner-top"]</cssSelector>
</locator>

<locator locatorId="innerMiddle">
<cssSelector>[data-test="inner-middle"]</cssSelector>
</locator>

<locator locatorId="innerBottom">
<cssSelector>[data-test="inner-bottom"]</cssSelector>
</locator>

<locator locatorId="pageTop">
<cssSelector>[data-test="page-top"]</cssSelector>
</locator>

<locator locatorId="pageMiddle">
<cssSelector>[data-test="page-middle"]</cssSelector>
</locator>

<locator locatorId="pageBottom">
<cssSelector>[data-test="page-bottom"]</cssSelector>
</locator>

</locators>

</page>
4 changes: 4 additions & 0 deletions REGRESSION/resources/locators/pages/browser/sideBar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
<locator locatorId="developerBoard1">
<xpath>(.//span[text() ='Developer Board'])[1]</xpath>
</locator>

<locator locatorId="scrollTest">
<xpath>.//span[text()='Scroll Test']</xpath>
</locator>
</locators>

</page>
120 changes: 120 additions & 0 deletions REGRESSION/resources/locators/pages/browser/uiElements.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,126 @@
<locator locatorId="selected3">
<xpath>(.//span[@class="multiselect-tag"])[3]</xpath>
</locator>

<locator locatorId="doubleClickBtn">
<xpath>.//button[contains(text(),'Double Click Me')]</xpath>
</locator>

<locator locatorId="doubleClickResult">
<xpath>.//p[contains(text(),'Double click detected')]</xpath>
</locator>

<locator locatorId="singleSelect">
<xpath>.//select[not(@multiple)]</xpath>
</locator>

<locator locatorId="singleOption1">
<xpath>.//select[not(@multiple)]/option[@value='1']</xpath>
</locator>

<locator locatorId="singleOption2">
<xpath>.//select[not(@multiple)]/option[@value='2']</xpath>
</locator>

<locator locatorId="singleOption3">
<xpath>.//select[not(@multiple)]/option[@value='3']</xpath>
</locator>

<locator locatorId="multiSelect">
<xpath>.//select[@multiple]</xpath>
</locator>

<locator locatorId="multiOptionAlpha">
<xpath>.//select[@multiple]/option[@value='A']</xpath>
</locator>

<locator locatorId="multiOptionBeta">
<xpath>.//select[@multiple]/option[@value='B']</xpath>
</locator>

<locator locatorId="multiOptionGamma">
<xpath>.//select[@multiple]/option[@value='C']</xpath>
</locator>

<locator locatorId="singleResult">
<xpath>.//h4[text()='DropDown Test']/following::p[contains(text(),'Selected value')][1]</xpath>
</locator>

<locator locatorId="multiResult">
<xpath>(.//h4[text()='DropDown Test']/following::p)[2]</xpath>
</locator>

<locator locatorId="hotKeyInput1">
<xpath>.//input[@placeholder='Input 1']</xpath>
</locator>

<locator locatorId="hotKeyInput2">
<xpath>.//input[@placeholder='Input 2']</xpath>
</locator>

<locator locatorId="hotKeyResult">
<xpath>.//p[contains(text(),'Result:')]</xpath>
</locator>

<locator locatorId="hotKeyOpenModal">
<xpath>.//button[contains(.,'Open Modal')]</xpath>
</locator>

<locator locatorId="hotKeyModal">
<xpath>.//div[contains(@class,'fixed') and .//p[text()='Modal Open']]</xpath>
</locator>

<locator locatorId="hotKeyModalText">
<xpath>.//p[text()='Modal Open']</xpath>
</locator>

<locator locatorId="hoverTarget">
<xpath>.//div[contains(text(),'Hover over me')]</xpath>
</locator>

<locator locatorId="hoverResult">
<xpath>.//p[contains(text(),'Hover status')]</xpath>
</locator>

<locator locatorId="testImage">
<cssSelector>[data-test='test-image']</cssSelector>
</locator>

<locator locatorId="testFrame">
<xpath>//iframe[@data-test='test-frame']</xpath>
</locator>

<locator locatorId="frameButton">
<xpath>//button[@data-test='frame-button']</xpath>
</locator>

<locator locatorId="frameResult">
<xpath>//p[@data-test='frame-result']</xpath>
</locator>

<locator locatorId="setCookieButton">
<xpath>.//button[@data-test='set-cookie']</xpath>
</locator>

<locator locatorId="waitTime">
<cssSelector>[data-test='wait-time']</cssSelector>
</locator>

<locator locatorId="waitUnit">
<cssSelector>[data-test='wait-unit']</cssSelector>
</locator>

<locator locatorId="waitStart">
<cssSelector>[data-test='wait-start']</cssSelector>
</locator>

<locator locatorId="waitResult">
<cssSelector>[data-test='wait-result']</cssSelector>
</locator>

<locator locatorId="waitClickable">
<cssSelector>[data-test='wait-clickable']</cssSelector>
</locator>
</locators>

</page>
Loading