Skip to content

Commit 478b2c4

Browse files
committed
adding test comment
1 parent dbe367b commit 478b2c4

File tree

8 files changed

+250
-27
lines changed

8 files changed

+250
-27
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<WebElementEntity>
3+
<description></description>
4+
<name>button_COMMENT</name>
5+
<tag></tag>
6+
<elementGuidId>1b37f51e-65e3-4de7-842a-9394aacc0b1a</elementGuidId>
7+
<selectorCollection>
8+
<entry>
9+
<key>XPATH</key>
10+
<value>(//button[@type='submit'])[2]</value>
11+
</entry>
12+
</selectorCollection>
13+
<selectorMethod>XPATH</selectorMethod>
14+
<useRalativeImagePath>false</useRalativeImagePath>
15+
<webElementProperties>
16+
<isSelected>false</isSelected>
17+
<matchCondition>equals</matchCondition>
18+
<name>tag</name>
19+
<type>Main</type>
20+
<value>button</value>
21+
</webElementProperties>
22+
<webElementProperties>
23+
<isSelected>false</isSelected>
24+
<matchCondition>equals</matchCondition>
25+
<name>class</name>
26+
<type>Main</type>
27+
<value>btn btn-large waves-effect waves-light blue</value>
28+
</webElementProperties>
29+
<webElementProperties>
30+
<isSelected>true</isSelected>
31+
<matchCondition>equals</matchCondition>
32+
<name>type</name>
33+
<type>Main</type>
34+
<value>submit</value>
35+
</webElementProperties>
36+
<webElementProperties>
37+
<isSelected>true</isSelected>
38+
<matchCondition>equals</matchCondition>
39+
<name>text</name>
40+
<type>Main</type>
41+
<value>COMMENT</value>
42+
</webElementProperties>
43+
<webElementProperties>
44+
<isSelected>false</isSelected>
45+
<matchCondition>equals</matchCondition>
46+
<name>xpath</name>
47+
<type>Main</type>
48+
<value>id(&quot;form-comment&quot;)/button[@class=&quot;btn btn-large waves-effect waves-light blue&quot;]</value>
49+
</webElementProperties>
50+
<webElementXpaths>
51+
<isSelected>true</isSelected>
52+
<matchCondition>equals</matchCondition>
53+
<name>xpath:attributes</name>
54+
<type>Main</type>
55+
<value>(//button[@type='submit'])[2]</value>
56+
</webElementXpaths>
57+
<webElementXpaths>
58+
<isSelected>false</isSelected>
59+
<matchCondition>equals</matchCondition>
60+
<name>xpath:idRelative</name>
61+
<type>Main</type>
62+
<value>//form[@id='form-comment']/button</value>
63+
</webElementXpaths>
64+
<webElementXpaths>
65+
<isSelected>false</isSelected>
66+
<matchCondition>equals</matchCondition>
67+
<name>xpath:neighbor</name>
68+
<type>Main</type>
69+
<value>(.//*[normalize-space(text()) and normalize-space(.)='Add a comment...'])[1]/following::button[1]</value>
70+
</webElementXpaths>
71+
<webElementXpaths>
72+
<isSelected>false</isSelected>
73+
<matchCondition>equals</matchCondition>
74+
<name>xpath:neighbor</name>
75+
<type>Main</type>
76+
<value>(.//*[normalize-space(text()) and normalize-space(.)='Comments'])[1]/following::button[1]</value>
77+
</webElementXpaths>
78+
<webElementXpaths>
79+
<isSelected>false</isSelected>
80+
<matchCondition>equals</matchCondition>
81+
<name>xpath:neighbor</name>
82+
<type>Main</type>
83+
<value>(.//*[normalize-space(text()) and normalize-space(.)=concat('Don', &quot;'&quot;, 't give up !')])[1]/preceding::button[1]</value>
84+
</webElementXpaths>
85+
<webElementXpaths>
86+
<isSelected>false</isSelected>
87+
<matchCondition>equals</matchCondition>
88+
<name>xpath:neighbor</name>
89+
<type>Main</type>
90+
<value>(.//*[normalize-space(text()) and normalize-space(.)='SEARCH'])[1]/preceding::button[1]</value>
91+
</webElementXpaths>
92+
<webElementXpaths>
93+
<isSelected>false</isSelected>
94+
<matchCondition>equals</matchCondition>
95+
<name>xpath:neighbor</name>
96+
<type>Main</type>
97+
<value>//*/text()[normalize-space(.)='COMMENT']/parent::*</value>
98+
</webElementXpaths>
99+
<webElementXpaths>
100+
<isSelected>false</isSelected>
101+
<matchCondition>equals</matchCondition>
102+
<name>xpath:position</name>
103+
<type>Main</type>
104+
<value>//div/form/button</value>
105+
</webElementXpaths>
106+
</WebElementEntity>

jamais404Test/Object Repository/Page_Jamais404/input_Password_password.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<selectorCollection>
88
<entry>
99
<key>XPATH</key>
10-
<value>//input[@id='register-password']</value>
10+
<value>//input[@id='login-password']</value>
1111
</entry>
1212
</selectorCollection>
1313
<selectorMethod>XPATH</selectorMethod>
@@ -24,19 +24,19 @@
2424
<matchCondition>equals</matchCondition>
2525
<name>id</name>
2626
<type>Main</type>
27-
<value>register-password</value>
27+
<value>login-password</value>
2828
</webElementProperties>
2929
<webElementProperties>
3030
<isSelected>true</isSelected>
3131
<matchCondition>equals</matchCondition>
32-
<name>type</name>
32+
<name>name</name>
3333
<type>Main</type>
3434
<value>password</value>
3535
</webElementProperties>
3636
<webElementProperties>
3737
<isSelected>true</isSelected>
3838
<matchCondition>equals</matchCondition>
39-
<name>name</name>
39+
<name>type</name>
4040
<type>Main</type>
4141
<value>password</value>
4242
</webElementProperties>
@@ -45,48 +45,48 @@
4545
<matchCondition>equals</matchCondition>
4646
<name>xpath</name>
4747
<type>Main</type>
48-
<value>id(&quot;register-password&quot;)</value>
48+
<value>id(&quot;login-password&quot;)</value>
4949
</webElementProperties>
5050
<webElementXpaths>
5151
<isSelected>true</isSelected>
5252
<matchCondition>equals</matchCondition>
5353
<name>xpath:attributes</name>
5454
<type>Main</type>
55-
<value>//input[@id='register-password']</value>
55+
<value>//input[@id='login-password']</value>
5656
</webElementXpaths>
5757
<webElementXpaths>
5858
<isSelected>false</isSelected>
5959
<matchCondition>equals</matchCondition>
6060
<name>xpath:idRelative</name>
6161
<type>Main</type>
62-
<value>//form[@id='form-register']/div[3]/input</value>
62+
<value>//form[@id='form-login']/div[2]/input</value>
6363
</webElementXpaths>
6464
<webElementXpaths>
6565
<isSelected>false</isSelected>
6666
<matchCondition>equals</matchCondition>
6767
<name>xpath:position</name>
6868
<type>Main</type>
69-
<value>//div[3]/input</value>
69+
<value>//div[2]/input</value>
7070
</webElementXpaths>
7171
<webElementXpaths>
7272
<isSelected>false</isSelected>
7373
<matchCondition>equals</matchCondition>
7474
<name>xpath:attributes</name>
7575
<type>Main</type>
76-
<value>//input[@id='login-password']</value>
76+
<value>//input[@id='register-password']</value>
7777
</webElementXpaths>
7878
<webElementXpaths>
7979
<isSelected>false</isSelected>
8080
<matchCondition>equals</matchCondition>
8181
<name>xpath:idRelative</name>
8282
<type>Main</type>
83-
<value>//form[@id='form-login']/div[2]/input</value>
83+
<value>//form[@id='form-register']/div[3]/input</value>
8484
</webElementXpaths>
8585
<webElementXpaths>
8686
<isSelected>false</isSelected>
8787
<matchCondition>equals</matchCondition>
8888
<name>xpath:position</name>
8989
<type>Main</type>
90-
<value>//div[2]/input</value>
90+
<value>//div[3]/input</value>
9191
</webElementXpaths>
9292
</WebElementEntity>

jamais404Test/Object Repository/Page_Jamais404/input_Username_username.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<selectorCollection>
88
<entry>
99
<key>XPATH</key>
10-
<value>//input[@id='register-username']</value>
10+
<value>//input[@id='login-username']</value>
1111
</entry>
1212
</selectorCollection>
1313
<selectorMethod>XPATH</selectorMethod>
@@ -24,69 +24,69 @@
2424
<matchCondition>equals</matchCondition>
2525
<name>id</name>
2626
<type>Main</type>
27-
<value>register-username</value>
27+
<value>login-username</value>
2828
</webElementProperties>
2929
<webElementProperties>
3030
<isSelected>true</isSelected>
3131
<matchCondition>equals</matchCondition>
32-
<name>type</name>
32+
<name>name</name>
3333
<type>Main</type>
34-
<value>text</value>
34+
<value>username</value>
3535
</webElementProperties>
3636
<webElementProperties>
3737
<isSelected>true</isSelected>
3838
<matchCondition>equals</matchCondition>
39-
<name>name</name>
39+
<name>type</name>
4040
<type>Main</type>
41-
<value>username</value>
41+
<value>text</value>
4242
</webElementProperties>
4343
<webElementProperties>
4444
<isSelected>false</isSelected>
4545
<matchCondition>equals</matchCondition>
4646
<name>xpath</name>
4747
<type>Main</type>
48-
<value>id(&quot;register-username&quot;)</value>
48+
<value>id(&quot;login-username&quot;)</value>
4949
</webElementProperties>
5050
<webElementXpaths>
5151
<isSelected>true</isSelected>
5252
<matchCondition>equals</matchCondition>
5353
<name>xpath:attributes</name>
5454
<type>Main</type>
55-
<value>//input[@id='register-username']</value>
55+
<value>//input[@id='login-username']</value>
5656
</webElementXpaths>
5757
<webElementXpaths>
5858
<isSelected>false</isSelected>
5959
<matchCondition>equals</matchCondition>
6060
<name>xpath:idRelative</name>
6161
<type>Main</type>
62-
<value>//form[@id='form-register']/div[2]/input</value>
62+
<value>//form[@id='form-login']/div/input</value>
6363
</webElementXpaths>
6464
<webElementXpaths>
6565
<isSelected>false</isSelected>
6666
<matchCondition>equals</matchCondition>
6767
<name>xpath:position</name>
6868
<type>Main</type>
69-
<value>//div[2]/input</value>
69+
<value>//div/input</value>
7070
</webElementXpaths>
7171
<webElementXpaths>
7272
<isSelected>false</isSelected>
7373
<matchCondition>equals</matchCondition>
7474
<name>xpath:attributes</name>
7575
<type>Main</type>
76-
<value>//input[@id='login-username']</value>
76+
<value>//input[@id='register-username']</value>
7777
</webElementXpaths>
7878
<webElementXpaths>
7979
<isSelected>false</isSelected>
8080
<matchCondition>equals</matchCondition>
8181
<name>xpath:idRelative</name>
8282
<type>Main</type>
83-
<value>//form[@id='form-login']/div/input</value>
83+
<value>//form[@id='form-register']/div[2]/input</value>
8484
</webElementXpaths>
8585
<webElementXpaths>
8686
<isSelected>false</isSelected>
8787
<matchCondition>equals</matchCondition>
8888
<name>xpath:position</name>
8989
<type>Main</type>
90-
<value>//div/input</value>
90+
<value>//div[2]/input</value>
9191
</webElementXpaths>
9292
</WebElementEntity>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<WebElementEntity>
3+
<description></description>
4+
<name>textarea_Add a comment_text</name>
5+
<tag></tag>
6+
<elementGuidId>a2525a77-1411-477c-be46-2bb27b2c6d03</elementGuidId>
7+
<selectorCollection>
8+
<entry>
9+
<key>XPATH</key>
10+
<value>//textarea[@id='input-comment']</value>
11+
</entry>
12+
</selectorCollection>
13+
<selectorMethod>XPATH</selectorMethod>
14+
<useRalativeImagePath>false</useRalativeImagePath>
15+
<webElementProperties>
16+
<isSelected>false</isSelected>
17+
<matchCondition>equals</matchCondition>
18+
<name>tag</name>
19+
<type>Main</type>
20+
<value>textarea</value>
21+
</webElementProperties>
22+
<webElementProperties>
23+
<isSelected>true</isSelected>
24+
<matchCondition>equals</matchCondition>
25+
<name>id</name>
26+
<type>Main</type>
27+
<value>input-comment</value>
28+
</webElementProperties>
29+
<webElementProperties>
30+
<isSelected>true</isSelected>
31+
<matchCondition>equals</matchCondition>
32+
<name>name</name>
33+
<type>Main</type>
34+
<value>text</value>
35+
</webElementProperties>
36+
<webElementProperties>
37+
<isSelected>false</isSelected>
38+
<matchCondition>equals</matchCondition>
39+
<name>class</name>
40+
<type>Main</type>
41+
<value>materialize-textarea</value>
42+
</webElementProperties>
43+
<webElementProperties>
44+
<isSelected>false</isSelected>
45+
<matchCondition>equals</matchCondition>
46+
<name>xpath</name>
47+
<type>Main</type>
48+
<value>id(&quot;input-comment&quot;)</value>
49+
</webElementProperties>
50+
<webElementXpaths>
51+
<isSelected>true</isSelected>
52+
<matchCondition>equals</matchCondition>
53+
<name>xpath:attributes</name>
54+
<type>Main</type>
55+
<value>//textarea[@id='input-comment']</value>
56+
</webElementXpaths>
57+
<webElementXpaths>
58+
<isSelected>false</isSelected>
59+
<matchCondition>equals</matchCondition>
60+
<name>xpath:idRelative</name>
61+
<type>Main</type>
62+
<value>//form[@id='form-comment']/div/textarea</value>
63+
</webElementXpaths>
64+
<webElementXpaths>
65+
<isSelected>false</isSelected>
66+
<matchCondition>equals</matchCondition>
67+
<name>xpath:position</name>
68+
<type>Main</type>
69+
<value>//textarea</value>
70+
</webElementXpaths>
71+
</WebElementEntity>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import static com.kms.katalon.core.checkpoint.CheckpointFactory.findCheckpoint
2+
import static com.kms.katalon.core.testcase.TestCaseFactory.findTestCase
3+
import static com.kms.katalon.core.testdata.TestDataFactory.findTestData
4+
import static com.kms.katalon.core.testobject.ObjectRepository.findTestObject
5+
import static com.kms.katalon.core.testobject.ObjectRepository.findWindowsObject
6+
import com.kms.katalon.core.checkpoint.Checkpoint as Checkpoint
7+
import com.kms.katalon.core.cucumber.keyword.CucumberBuiltinKeywords as CucumberKW
8+
import com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords as Mobile
9+
import com.kms.katalon.core.model.FailureHandling as FailureHandling
10+
import com.kms.katalon.core.testcase.TestCase as TestCase
11+
import com.kms.katalon.core.testdata.TestData as TestData
12+
import com.kms.katalon.core.testobject.TestObject as TestObject
13+
import com.kms.katalon.core.webservice.keyword.WSBuiltInKeywords as WS
14+
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
15+
import com.kms.katalon.core.windows.keyword.WindowsBuiltinKeywords as Windows
16+
import internal.GlobalVariable as GlobalVariable
17+
import org.openqa.selenium.Keys as Keys
18+
19+
WebUI.openBrowser('')
20+
21+
WebUI.navigateToUrl('http://157.26.83.82:8888/login')
22+
23+
WebUI.setText(findTestObject('Page_Jamais404/input_Username_username'), 'exemple')
24+
25+
WebUI.setEncryptedText(findTestObject('Page_Jamais404/input_Password_password'), 'RFJlAAUGRPhFAxp9mUr0ig==')
26+
27+
WebUI.setText(findTestObject('Page_Jamais404/input_Jamais 404_query'), 'exemple')
28+
29+
WebUI.setText(findTestObject('Object Repository/Page_Jamais404/textarea_Add a comment_text'), 'Bravo !')
30+
31+
WebUI.click(findTestObject('Object Repository/Page_Jamais404/button_COMMENT'))
32+

jamais404Test/Test Cases/Comments.tc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<TestCaseEntity>
3+
<description>Put a comment</description>
4+
<name>Comments</name>
5+
<tag></tag>
6+
<comment></comment>
7+
<testCaseGuid>865106c1-6725-450d-b470-2d0d7869eb20</testCaseGuid>
8+
</TestCaseEntity>

0 commit comments

Comments
 (0)