-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput.xml
More file actions
291 lines (291 loc) · 14.7 KB
/
output.xml
File metadata and controls
291 lines (291 loc) · 14.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 5.0.1 (Python 3.10.5 on win32)" generated="20220806 17:25:39.379" rpa="false" schemaversion="3">
<suite id="s1" name="TestCases" source="C:\Users\irfandy4hmad\PycharmProjects\robotFrameworkPython\TestCases">
<suite id="s1-s1" name="TC01 registrationTest" source="C:\Users\irfandy4hmad\PycharmProjects\robotFrameworkPython\TestCases\TC01_registrationTest.robot">
<test id="s1-s1-t1" name="RegistrationTest" line="10">
<kw name="Generate Random Email" library="RegistrationKeywords">
<var>${EMAIL}</var>
<kw name="Generate Random String" library="String">
<var>${random}</var>
<arg>8</arg>
<arg>[LETTERS]</arg>
<doc>Generates a string with a desired ``length`` from the given ``chars``.</doc>
<msg timestamp="20220806 17:25:39.720" level="INFO">${random} = EuqncPIk</msg>
<status status="PASS" starttime="20220806 17:25:39.720" endtime="20220806 17:25:39.720"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${domain}</var>
<arg>@abcmail.com</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20220806 17:25:39.721" level="INFO">${domain} = @abcmail.com</msg>
<status status="PASS" starttime="20220806 17:25:39.720" endtime="20220806 17:25:39.721"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${email}</var>
<arg>${random}${domain}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20220806 17:25:39.721" level="INFO">${email} = EuqncPIk@abcmail.com</msg>
<status status="PASS" starttime="20220806 17:25:39.721" endtime="20220806 17:25:39.721"/>
</kw>
<kw name="Log To Console" library="BuiltIn">
<arg>${email}</arg>
<doc>Logs the given message to the console.</doc>
<status status="PASS" starttime="20220806 17:25:39.721" endtime="20220806 17:25:39.722"/>
</kw>
<msg timestamp="20220806 17:25:39.722" level="INFO">${EMAIL} = EuqncPIk@abcmail.com</msg>
<status status="PASS" starttime="20220806 17:25:39.719" endtime="20220806 17:25:39.722"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${EMAIL}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20220806 17:25:39.723" level="INFO">${EMAIL} = EuqncPIk@abcmail.com</msg>
<status status="PASS" starttime="20220806 17:25:39.723" endtime="20220806 17:25:39.723"/>
</kw>
<kw name="Open MyBrowser" library="RegistrationKeywords">
<arg>${url}</arg>
<arg>${browser}</arg>
<kw name="Open Browser" library="SeleniumLibrary">
<arg>${siteURL}</arg>
<arg>${browser}</arg>
<doc>Opens a new browser instance to the optional ``url``.</doc>
<msg timestamp="20220806 17:25:39.724" level="INFO">Opening browser 'chrome' to base url 'https://demo.nopcommerce.com/login'.</msg>
<status status="PASS" starttime="20220806 17:25:39.724" endtime="20220806 17:25:42.004"/>
</kw>
<kw name="Maximize Browser Window" library="SeleniumLibrary">
<doc>Maximizes current browser window.</doc>
<status status="PASS" starttime="20220806 17:25:42.004" endtime="20220806 17:25:42.125"/>
</kw>
<status status="PASS" starttime="20220806 17:25:39.724" endtime="20220806 17:25:42.125"/>
</kw>
<kw name="Click Register Link" library="RegistrationKeywords">
<kw name="Click Link" library="SeleniumLibrary">
<arg>${link_register}</arg>
<doc>Clicks a link identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:42.125" level="INFO">Clicking link 'link:Register'.</msg>
<status status="PASS" starttime="20220806 17:25:42.125" endtime="20220806 17:25:42.745"/>
</kw>
<status status="PASS" starttime="20220806 17:25:42.125" endtime="20220806 17:25:42.745"/>
</kw>
<kw name="Enter Firstname" library="RegistrationKeywords">
<arg>Satoru</arg>
<kw name="Input Text" library="SeleniumLibrary">
<arg>${txt_firstName}</arg>
<arg>${firstName}</arg>
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:42.748" level="INFO">Typing text 'Satoru' into text field 'name:FirstName'.</msg>
<status status="PASS" starttime="20220806 17:25:42.747" endtime="20220806 17:25:42.864"/>
</kw>
<status status="PASS" starttime="20220806 17:25:42.747" endtime="20220806 17:25:42.864"/>
</kw>
<kw name="Enter Lastname" library="RegistrationKeywords">
<arg>Gojo</arg>
<kw name="Input Text" library="SeleniumLibrary">
<arg>${txt_lastName}</arg>
<arg>${lastName}</arg>
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:42.865" level="INFO">Typing text 'Gojo' into text field 'name:LastName'.</msg>
<status status="PASS" starttime="20220806 17:25:42.865" endtime="20220806 17:25:42.973"/>
</kw>
<status status="PASS" starttime="20220806 17:25:42.865" endtime="20220806 17:25:42.974"/>
</kw>
<kw name="Enter Email" library="RegistrationKeywords">
<arg>${EMAIL}</arg>
<kw name="Input Text" library="SeleniumLibrary">
<arg>${txt_email}</arg>
<arg>${email}</arg>
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:42.976" level="INFO">Typing text 'EuqncPIk@abcmail.com' into text field 'name:Email'.</msg>
<status status="PASS" starttime="20220806 17:25:42.975" endtime="20220806 17:25:43.105"/>
</kw>
<status status="PASS" starttime="20220806 17:25:42.974" endtime="20220806 17:25:43.105"/>
</kw>
<kw name="Select Gender Male" library="RegistrationKeywords">
<kw name="Click Element" library="SeleniumLibrary">
<arg>${rdBtn_male}</arg>
<doc>Click the element identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:43.107" level="INFO">Clicking element 'id:gender-male'.</msg>
<status status="PASS" starttime="20220806 17:25:43.106" endtime="20220806 17:25:43.157"/>
</kw>
<status status="PASS" starttime="20220806 17:25:43.106" endtime="20220806 17:25:43.157"/>
</kw>
<kw name="Select Day" library="RegistrationKeywords">
<arg>7</arg>
<kw name="Select From List By Label" library="SeleniumLibrary">
<arg>${drp_dobday}</arg>
<arg>${day}</arg>
<doc>Selects options from selection list ``locator`` by ``labels``.</doc>
<msg timestamp="20220806 17:25:43.157" level="INFO">Selecting options from selection list 'name:DateOfBirthDay' by label 7.</msg>
<status status="PASS" starttime="20220806 17:25:43.157" endtime="20220806 17:25:43.224"/>
</kw>
<status status="PASS" starttime="20220806 17:25:43.157" endtime="20220806 17:25:43.224"/>
</kw>
<kw name="Select Month" library="RegistrationKeywords">
<arg>December</arg>
<kw name="Select From List By Label" library="SeleniumLibrary">
<arg>${drp_dobMonth}</arg>
<arg>${month}</arg>
<doc>Selects options from selection list ``locator`` by ``labels``.</doc>
<msg timestamp="20220806 17:25:43.240" level="INFO">Selecting options from selection list 'name:DateOfBirthMonth' by label December.</msg>
<status status="PASS" starttime="20220806 17:25:43.224" endtime="20220806 17:25:43.307"/>
</kw>
<status status="PASS" starttime="20220806 17:25:43.224" endtime="20220806 17:25:43.307"/>
</kw>
<kw name="Select Year" library="RegistrationKeywords">
<arg>1989</arg>
<kw name="Select From List By Label" library="SeleniumLibrary">
<arg>${drp_dobYear}</arg>
<arg>${year}</arg>
<doc>Selects options from selection list ``locator`` by ``labels``.</doc>
<msg timestamp="20220806 17:25:43.307" level="INFO">Selecting options from selection list 'name:DateOfBirthYear' by label 1989.</msg>
<status status="PASS" starttime="20220806 17:25:43.307" endtime="20220806 17:25:43.374"/>
</kw>
<status status="PASS" starttime="20220806 17:25:43.307" endtime="20220806 17:25:43.374"/>
</kw>
<kw name="Enter Company" library="RegistrationKeywords">
<arg>jujutsu kaisen</arg>
<kw name="Input Text" library="SeleniumLibrary">
<arg>${txt_company}</arg>
<arg>${company}</arg>
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:43.391" level="INFO">Typing text 'jujutsu kaisen' into text field 'name:Company'.</msg>
<status status="PASS" starttime="20220806 17:25:43.390" endtime="20220806 17:25:43.505"/>
</kw>
<status status="PASS" starttime="20220806 17:25:43.374" endtime="20220806 17:25:43.505"/>
</kw>
<kw name="Enter Password" library="RegistrationKeywords">
<arg>password123</arg>
<kw name="Input Text" library="SeleniumLibrary">
<arg>${txt_password}</arg>
<arg>${password}</arg>
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:43.506" level="INFO">Typing text 'password123' into text field 'name:Password'.</msg>
<status status="PASS" starttime="20220806 17:25:43.506" endtime="20220806 17:25:43.623"/>
</kw>
<status status="PASS" starttime="20220806 17:25:43.506" endtime="20220806 17:25:43.623"/>
</kw>
<kw name="Enter Confirm Password" library="RegistrationKeywords">
<arg>password123</arg>
<kw name="Input Text" library="SeleniumLibrary">
<arg>${txt_confirmPassword}</arg>
<arg>${confirmPassword}</arg>
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:43.627" level="INFO">Typing text 'password123' into text field 'name:ConfirmPassword'.</msg>
<status status="PASS" starttime="20220806 17:25:43.625" endtime="20220806 17:25:43.753"/>
</kw>
<status status="PASS" starttime="20220806 17:25:43.624" endtime="20220806 17:25:43.753"/>
</kw>
<kw name="Click Register Button" library="RegistrationKeywords">
<kw name="Click Button" library="SeleniumLibrary">
<arg>${btn_register}</arg>
<doc>Clicks the button identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:43.754" level="INFO">Clicking button 'id:register-button'.</msg>
<status status="PASS" starttime="20220806 17:25:43.754" endtime="20220806 17:25:44.614"/>
</kw>
<status status="PASS" starttime="20220806 17:25:43.754" endtime="20220806 17:25:44.615"/>
</kw>
<kw name="Verify Successful Registration" library="RegistrationKeywords">
<kw name="Page Should Contain" library="SeleniumLibrary">
<arg>Your registration completed</arg>
<doc>Verifies that current page contains ``text``.</doc>
<msg timestamp="20220806 17:25:44.636" level="INFO">Current page contains text 'Your registration completed'.</msg>
<status status="PASS" starttime="20220806 17:25:44.616" endtime="20220806 17:25:44.636"/>
</kw>
<status status="PASS" starttime="20220806 17:25:44.615" endtime="20220806 17:25:44.636"/>
</kw>
<kw name="Close MyBrowsers" library="RegistrationKeywords">
<kw name="Close All Browsers" library="SeleniumLibrary">
<doc>Closes all open browsers and resets the browser cache.</doc>
<status status="PASS" starttime="20220806 17:25:44.637" endtime="20220806 17:25:46.855"/>
</kw>
<status status="PASS" starttime="20220806 17:25:44.637" endtime="20220806 17:25:46.855"/>
</kw>
<status status="PASS" starttime="20220806 17:25:39.718" endtime="20220806 17:25:46.855"/>
</test>
<status status="PASS" starttime="20220806 17:25:39.423" endtime="20220806 17:25:46.855"/>
</suite>
<suite id="s1-s2" name="TC02 loginTest" source="C:\Users\irfandy4hmad\PycharmProjects\robotFrameworkPython\TestCases\TC02_loginTest.robot">
<test id="s1-s2-t1" name="LoginTest" line="12">
<kw name="Open MyBrowser" library="LoginKeywords">
<arg>${url}</arg>
<arg>${browser}</arg>
<kw name="Open Browser" library="SeleniumLibrary">
<arg>${siteURL}</arg>
<arg>${browser}</arg>
<doc>Opens a new browser instance to the optional ``url``.</doc>
<msg timestamp="20220806 17:25:46.893" level="INFO">Opening browser 'chrome' to base url 'https://demo.nopcommerce.com/login'.</msg>
<status status="PASS" starttime="20220806 17:25:46.893" endtime="20220806 17:25:49.107"/>
</kw>
<kw name="Maximize Browser Window" library="SeleniumLibrary">
<doc>Maximizes current browser window.</doc>
<status status="PASS" starttime="20220806 17:25:49.108" endtime="20220806 17:25:49.233"/>
</kw>
<status status="PASS" starttime="20220806 17:25:46.892" endtime="20220806 17:25:49.233"/>
</kw>
<kw name="Enter Username" library="LoginKeywords">
<arg>${user}</arg>
<kw name="Input Text" library="SeleniumLibrary">
<arg>${txt_loginusername}</arg>
<arg>${username}</arg>
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:49.235" level="INFO">Typing text 'EuqncPIk@abcmail.com' into text field 'name:Email'.</msg>
<status status="PASS" starttime="20220806 17:25:49.235" endtime="20220806 17:25:49.376"/>
</kw>
<status status="PASS" starttime="20220806 17:25:49.234" endtime="20220806 17:25:49.376"/>
</kw>
<kw name="Enter Password" library="LoginKeywords">
<arg>${pwd}</arg>
<kw name="Input Text" library="SeleniumLibrary">
<arg>${txt_loginPassword}</arg>
<arg>${password}</arg>
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:49.378" level="INFO">Typing text 'password123' into text field 'name:Password'.</msg>
<status status="PASS" starttime="20220806 17:25:49.377" endtime="20220806 17:25:49.484"/>
</kw>
<status status="PASS" starttime="20220806 17:25:49.377" endtime="20220806 17:25:49.485"/>
</kw>
<kw name="Click Login" library="LoginKeywords">
<kw name="Click Button" library="SeleniumLibrary">
<arg>${btn_login}</arg>
<doc>Clicks the button identified by ``locator``.</doc>
<msg timestamp="20220806 17:25:49.486" level="INFO">Clicking button 'xpath://button[normalize-space()='Log in']'.</msg>
<status status="PASS" starttime="20220806 17:25:49.485" endtime="20220806 17:25:50.456"/>
</kw>
<status status="PASS" starttime="20220806 17:25:49.485" endtime="20220806 17:25:50.456"/>
</kw>
<kw name="Verify Successful Login" library="LoginKeywords">
<kw name="Title Should Be" library="SeleniumLibrary">
<arg>nopCommerce demo store</arg>
<doc>Verifies that the current page title equals ``title``.</doc>
<msg timestamp="20220806 17:25:50.463" level="INFO">Page title is 'nopCommerce demo store'.</msg>
<status status="PASS" starttime="20220806 17:25:50.457" endtime="20220806 17:25:50.463"/>
</kw>
<status status="PASS" starttime="20220806 17:25:50.457" endtime="20220806 17:25:50.464"/>
</kw>
<kw name="Close MyBrowsers" library="LoginKeywords">
<kw name="Close All Browsers" library="SeleniumLibrary">
<doc>Closes all open browsers and resets the browser cache.</doc>
<status status="PASS" starttime="20220806 17:25:50.468" endtime="20220806 17:25:52.696"/>
</kw>
<status status="PASS" starttime="20220806 17:25:50.465" endtime="20220806 17:25:52.697"/>
</kw>
<status status="PASS" starttime="20220806 17:25:46.890" endtime="20220806 17:25:52.698"/>
</test>
<status status="PASS" starttime="20220806 17:25:46.871" endtime="20220806 17:25:52.704"/>
</suite>
<status status="PASS" starttime="20220806 17:25:39.379" endtime="20220806 17:25:52.712"/>
</suite>
<statistics>
<total>
<stat pass="2" fail="0" skip="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="2" fail="0" skip="0" id="s1" name="TestCases">TestCases</stat>
<stat pass="1" fail="0" skip="0" id="s1-s1" name="TC01 registrationTest">TestCases.TC01 registrationTest</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2" name="TC02 loginTest">TestCases.TC02 loginTest</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>