-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput.xml
More file actions
313 lines (313 loc) · 14.8 KB
/
output.xml
File metadata and controls
313 lines (313 loc) · 14.8 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
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 3.2.1 (Python 3.8.5 on win32)" generated="20200727 18:04:15.544" rpa="false">
<suite id="s1" name="LoginTest" source="C:\Users\Dale\PycharmProjects\InterviewTaskRobot2\TestCases\LoginTest.robot">
<test id="s1-t1" name="TC1: Create one New Page + Verify Published">
<kw name="Start TestCase" library="Common" type="setup">
<kw name="Open Browser" library="SeleniumLibrary">
<doc>Opens a new browser instance to the optional ``url``.</doc>
<arguments>
<arg>https://katerina-techinterview.otgs.work/wp-admin/</arg>
<arg>chrome</arg>
</arguments>
<msg timestamp="20200727 18:04:16.224" level="INFO">Opening browser 'chrome' to base url 'https://katerina-techinterview.otgs.work/wp-admin/'.</msg>
<status status="PASS" starttime="20200727 18:04:16.223" endtime="20200727 18:04:21.333"></status>
</kw>
<kw name="Maximize Browser Window" library="SeleniumLibrary">
<doc>Maximizes current browser window.</doc>
<status status="PASS" starttime="20200727 18:04:21.334" endtime="20200727 18:04:23.498"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:16.223" endtime="20200727 18:04:23.499"></status>
</kw>
<kw name="Enter UserName" library="LoginKeywords">
<arguments>
<arg>${user}</arg>
</arguments>
<kw name="Input Text" library="SeleniumLibrary">
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<arguments>
<arg>${LoginPageLoginUsername}</arg>
<arg>${username}</arg>
</arguments>
<msg timestamp="20200727 18:04:23.500" level="INFO">Typing text 'katerinaadmin' into text field 'xpath://input[@id='user_login']'.</msg>
<status status="PASS" starttime="20200727 18:04:23.500" endtime="20200727 18:04:23.631"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:23.499" endtime="20200727 18:04:23.631"></status>
</kw>
<kw name="Enter Password" library="LoginKeywords">
<arguments>
<arg>${pwd}</arg>
</arguments>
<kw name="Input Text" library="SeleniumLibrary">
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<arguments>
<arg>${LoginPageLoginPassword}</arg>
<arg>${password}</arg>
</arguments>
<msg timestamp="20200727 18:04:23.633" level="INFO">Typing text 'Z^Mt.fVQT~oB' into text field 'xpath://input[@id='user_pass']'.</msg>
<status status="PASS" starttime="20200727 18:04:23.632" endtime="20200727 18:04:23.744"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:23.632" endtime="20200727 18:04:23.744"></status>
</kw>
<kw name="Click SignIn" library="LoginKeywords">
<kw name="Click Button" library="SeleniumLibrary">
<doc>Clicks the button identified by ``locator``.</doc>
<arguments>
<arg>${LoginPageSignInButton}</arg>
</arguments>
<msg timestamp="20200727 18:04:23.746" level="INFO">Clicking button 'xpath://input[@id='wp-submit']'.</msg>
<status status="PASS" starttime="20200727 18:04:23.745" endtime="20200727 18:04:28.101"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:23.745" endtime="20200727 18:04:28.102"></status>
</kw>
<kw name="Verify Succesful Login" library="LoginKeywords">
<kw name="Title Should Be" library="SeleniumLibrary">
<doc>Verifies that the current page title equals ``title``.</doc>
<arguments>
<arg>Dashboard ‹ My WordPress Website — WordPress</arg>
</arguments>
<msg timestamp="20200727 18:04:28.111" level="INFO">Page title is 'Dashboard ‹ My WordPress Website — WordPress'.</msg>
<status status="PASS" starttime="20200727 18:04:28.104" endtime="20200727 18:04:28.111"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:28.103" endtime="20200727 18:04:28.111"></status>
</kw>
<kw name="Add New Page" library="LoginKeywords">
<kw name="Mouse Over" library="SeleniumLibrary">
<doc>Simulates hovering the mouse over the element ``locator``.</doc>
<arguments>
<arg>${HomePageNewMenu}</arg>
</arguments>
<msg timestamp="20200727 18:04:28.113" level="INFO">Simulating Mouse Over on element 'xpath://span[@class='ab-label']'.</msg>
<status status="PASS" starttime="20200727 18:04:28.112" endtime="20200727 18:04:28.414"></status>
</kw>
<kw name="Click Element" library="SeleniumLibrary">
<doc>Click the element identified by ``locator``.</doc>
<arguments>
<arg>${HomePageAddNewPage}</arg>
</arguments>
<msg timestamp="20200727 18:04:28.415" level="INFO">Clicking element 'xpath://a[@class='ab-item'][contains(text(),'Page')]'.</msg>
<status status="PASS" starttime="20200727 18:04:28.415" endtime="20200727 18:04:35.454"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20200727 18:04:37.458" level="INFO">Slept 2 seconds</msg>
<status status="PASS" starttime="20200727 18:04:35.454" endtime="20200727 18:04:37.458"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:28.111" endtime="20200727 18:04:37.458"></status>
</kw>
<kw name="Escape Popups" library="LoginKeywords">
<kw name="Press Keys" library="SeleniumLibrary">
<doc>Simulates the user pressing key(s) to an element or on the active browser.</doc>
<arguments>
<arg>None</arg>
<arg>ESCAPE</arg>
</arguments>
<msg timestamp="20200727 18:04:37.459" level="INFO">Sending key(s) ('ESCAPE',) to page.</msg>
<msg timestamp="20200727 18:04:37.459" level="INFO">Pressing special key ESCAPE to browser.</msg>
<msg timestamp="20200727 18:04:37.459" level="INFO">Releasing special key ESCAPE.</msg>
<status status="PASS" starttime="20200727 18:04:37.459" endtime="20200727 18:04:37.480"></status>
</kw>
<kw name="Click Element" library="SeleniumLibrary">
<doc>Click the element identified by ``locator``.</doc>
<arguments>
<arg>${ClickMenuButton}</arg>
</arguments>
<msg timestamp="20200727 18:04:37.481" level="INFO">Clicking element 'xpath://div[@class='components-dropdown components-dropdown-menu edit-post-more-menu']//button[@class='components-button components-dropdown-menu__toggle has-icon']//*[local-name()='svg']'.</msg>
<status status="PASS" starttime="20200727 18:04:37.481" endtime="20200727 18:04:37.595"></status>
</kw>
<kw name="Click Button" library="SeleniumLibrary">
<doc>Clicks the button identified by ``locator``.</doc>
<arguments>
<arg>${ClickCodeEditorButton}</arg>
</arguments>
<msg timestamp="20200727 18:04:37.596" level="INFO">Clicking button 'xpath://button[@class='components-button components-menu-item__button components-menu-items-choice']'.</msg>
<status status="PASS" starttime="20200727 18:04:37.596" endtime="20200727 18:04:37.757"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20200727 18:04:39.764" level="INFO">Slept 2 seconds</msg>
<status status="PASS" starttime="20200727 18:04:37.758" endtime="20200727 18:04:39.764"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:37.458" endtime="20200727 18:04:39.764"></status>
</kw>
<kw name="Type Content + Title" library="LoginKeywords">
<kw name="Word" library="FakerLibrary">
<doc>:returns: A random word, eg: 'lorem'</doc>
<assign>
<var>${pageword}</var>
</assign>
<msg timestamp="20200727 18:04:39.766" level="INFO">${pageword} = answer</msg>
<status status="PASS" starttime="20200727 18:04:39.765" endtime="20200727 18:04:39.766"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>Title used: ${pageword}</arg>
</arguments>
<msg timestamp="20200727 18:04:39.767" level="INFO">Title used: answer</msg>
<status status="PASS" starttime="20200727 18:04:39.766" endtime="20200727 18:04:39.767"></status>
</kw>
<kw name="Input Text" library="SeleniumLibrary">
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<arguments>
<arg>${NewPageAddTitle}</arg>
<arg>${pageword}</arg>
</arguments>
<msg timestamp="20200727 18:04:39.768" level="INFO">Typing text 'answer' into text field 'xpath://textarea[@placeholder='Add title']'.</msg>
<status status="PASS" starttime="20200727 18:04:39.767" endtime="20200727 18:04:40.018"></status>
</kw>
<kw name="Set Suite Variable" library="BuiltIn">
<doc>Makes a variable available everywhere within the scope of the current suite.</doc>
<arguments>
<arg>${pageword}</arg>
</arguments>
<msg timestamp="20200727 18:04:40.020" level="INFO">${pageword} = answer</msg>
<status status="PASS" starttime="20200727 18:04:40.019" endtime="20200727 18:04:40.020"></status>
</kw>
<kw name="Paragraph" library="FakerLibrary">
<doc>:returns: A single paragraph. For example: 'Sapiente sunt omnis. Ut
pariatur ad autem ducimus et. Voluptas rem voluptas sint modi dolorem amet.'</doc>
<assign>
<var>${paragraph}</var>
</assign>
<msg timestamp="20200727 18:04:40.021" level="INFO">${paragraph} = Democratic huge second program total follow catch age. Doctor involve shake garden.</msg>
<status status="PASS" starttime="20200727 18:04:40.020" endtime="20200727 18:04:40.021"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>Title used: ${paragraph}</arg>
</arguments>
<msg timestamp="20200727 18:04:40.021" level="INFO">Title used: Democratic huge second program total follow catch age. Doctor involve shake garden.</msg>
<status status="PASS" starttime="20200727 18:04:40.021" endtime="20200727 18:04:40.022"></status>
</kw>
<kw name="Input Text" library="SeleniumLibrary">
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<arguments>
<arg>${NewPageAddContent}</arg>
<arg>${paragraph}</arg>
</arguments>
<msg timestamp="20200727 18:04:40.022" level="INFO">Typing text 'Democratic huge second program total follow catch age. Doctor involve shake garden.' into text field 'xpath://textarea[@placeholder='Start writing with text or HTML']'.</msg>
<status status="PASS" starttime="20200727 18:04:40.022" endtime="20200727 18:04:41.006"></status>
</kw>
<kw name="Set Suite Variable" library="BuiltIn">
<doc>Makes a variable available everywhere within the scope of the current suite.</doc>
<arguments>
<arg>${paragraph}</arg>
</arguments>
<msg timestamp="20200727 18:04:41.007" level="INFO">${paragraph} = Democratic huge second program total follow catch age. Doctor involve shake garden.</msg>
<status status="PASS" starttime="20200727 18:04:41.006" endtime="20200727 18:04:41.007"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20200727 18:04:43.014" level="INFO">Slept 2 seconds</msg>
<status status="PASS" starttime="20200727 18:04:41.007" endtime="20200727 18:04:43.014"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:39.765" endtime="20200727 18:04:43.014"></status>
</kw>
<kw name="Publish" library="LoginKeywords">
<kw name="Click Button" library="SeleniumLibrary">
<doc>Clicks the button identified by ``locator``.</doc>
<arguments>
<arg>${PublishButton}</arg>
</arguments>
<msg timestamp="20200727 18:04:43.015" level="INFO">Clicking button 'xpath://button[@class='components-button editor-post-publish-panel__toggle editor-post-publish-button__button is-primary']'.</msg>
<status status="PASS" starttime="20200727 18:04:43.015" endtime="20200727 18:04:43.119"></status>
</kw>
<kw name="Click Button" library="SeleniumLibrary">
<doc>Clicks the button identified by ``locator``.</doc>
<arguments>
<arg>${PublishButton2}</arg>
</arguments>
<msg timestamp="20200727 18:04:43.119" level="INFO">Clicking button 'xpath://button[@class='components-button editor-post-publish-button editor-post-publish-button__button is-primary']'.</msg>
<status status="PASS" starttime="20200727 18:04:43.119" endtime="20200727 18:04:43.276"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20200727 18:04:45.287" level="INFO">Slept 2 seconds</msg>
<status status="PASS" starttime="20200727 18:04:43.276" endtime="20200727 18:04:45.287"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:43.014" endtime="20200727 18:04:45.287"></status>
</kw>
<kw name="Open Published Page" library="LoginKeywords">
<kw name="Click Element" library="SeleniumLibrary">
<doc>Click the element identified by ``locator``.</doc>
<arguments>
<arg>${ViewPageButton}</arg>
</arguments>
<msg timestamp="20200727 18:04:45.288" level="INFO">Clicking element 'xpath://div[@class='components-panel__body post-publish-panel__postpublish-header is-opened']//a'.</msg>
<status status="PASS" starttime="20200727 18:04:45.288" endtime="20200727 18:04:46.742"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>3</arg>
</arguments>
<msg timestamp="20200727 18:04:49.755" level="INFO">Slept 3 seconds</msg>
<status status="PASS" starttime="20200727 18:04:46.742" endtime="20200727 18:04:49.755"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:45.287" endtime="20200727 18:04:49.755"></status>
</kw>
<kw name="Check Published Content" library="LoginKeywords">
<kw name="Page Should Contain" library="SeleniumLibrary">
<doc>Verifies that current page contains ``text``.</doc>
<arguments>
<arg>${pageword}</arg>
</arguments>
<msg timestamp="20200727 18:04:49.778" level="INFO">Current page contains text 'answer'.</msg>
<status status="PASS" starttime="20200727 18:04:49.756" endtime="20200727 18:04:49.778"></status>
</kw>
<kw name="Page Should Contain" library="SeleniumLibrary">
<doc>Verifies that current page contains ``text``.</doc>
<arguments>
<arg>${paragraph}</arg>
</arguments>
<msg timestamp="20200727 18:04:49.798" level="INFO">Current page contains text 'Democratic huge second program total follow catch age. Doctor involve shake garden.'.</msg>
<status status="PASS" starttime="20200727 18:04:49.778" endtime="20200727 18:04:49.798"></status>
</kw>
<kw name="Sleep" library="BuiltIn">
<doc>Pauses the test executed for the given time.</doc>
<arguments>
<arg>2</arg>
</arguments>
<msg timestamp="20200727 18:04:51.813" level="INFO">Slept 2 seconds</msg>
<status status="PASS" starttime="20200727 18:04:49.798" endtime="20200727 18:04:51.813"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:49.755" endtime="20200727 18:04:51.814"></status>
</kw>
<kw name="Finish TestCase" library="LoginKeywords" type="teardown">
<kw name="Close All Browsers" library="SeleniumLibrary">
<doc>Closes all open browsers and resets the browser cache.</doc>
<status status="PASS" starttime="20200727 18:04:51.814" endtime="20200727 18:04:54.125"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:51.814" endtime="20200727 18:04:54.125"></status>
</kw>
<status status="PASS" starttime="20200727 18:04:16.222" endtime="20200727 18:04:54.125" critical="yes"></status>
</test>
<status status="PASS" starttime="20200727 18:04:15.547" endtime="20200727 18:04:54.126"></status>
</suite>
<statistics>
<total>
<stat pass="1" fail="0">Critical Tests</stat>
<stat pass="1" fail="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="1" fail="0" id="s1" name="LoginTest">LoginTest</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>