-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.xml
232 lines (227 loc) · 11 KB
/
output.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<robot rpa="false" generated="20190415 12:03:25.432" generator="Robot 3.1.2.dev1 (Python 2.7.6 on linux2)">
<suite source="/home/amit/work/Robotframework/login_tests" id="s1" name="Login Tests">
<suite source="/home/amit/work/Robotframework/login_tests/gherkin_login.robot" id="s1-s1" name="Gherkin Login">
<test id="s1-s1-t1" name="Valid Login">
<kw name="Given browser is opened to login page">
<kw name="Open Browser To Login Page" library="resource">
<kw name="Open Browser" library="SeleniumLibrary">
<doc>Opens a new browser instance to the given ``url``.</doc>
<arguments>
<arg>${LOGIN URL}</arg>
<arg>${BROWSER}</arg>
</arguments>
<msg timestamp="20190415 12:03:25.538" level="INFO">Opening browser 'Firefox' to base url 'http://localhost:7272/'.</msg>
<status status="PASS" endtime="20190415 12:03:33.103" starttime="20190415 12:03:25.537"></status>
</kw>
<kw name="Maximize Browser Window" library="SeleniumLibrary">
<doc>Maximizes current browser window.</doc>
<status status="PASS" endtime="20190415 12:03:36.628" starttime="20190415 12:03:33.104"></status>
</kw>
<kw name="Set Selenium Speed" library="SeleniumLibrary">
<doc>Sets the delay that is waited after each Selenium command.</doc>
<arguments>
<arg>${DELAY}</arg>
</arguments>
<status status="PASS" endtime="20190415 12:03:36.630" starttime="20190415 12:03:36.629"></status>
</kw>
<kw name="Login Page Should Be Open" library="resource">
<kw name="Title Should Be" library="SeleniumLibrary">
<doc>Verifies that current page title equals ``title``.</doc>
<arguments>
<arg>Login Page</arg>
</arguments>
<msg timestamp="20190415 12:03:36.646" level="INFO">Page title is 'Login Page'.</msg>
<status status="PASS" endtime="20190415 12:03:36.647" starttime="20190415 12:03:36.632"></status>
</kw>
<status status="PASS" endtime="20190415 12:03:36.647" starttime="20190415 12:03:36.631"></status>
</kw>
<status status="PASS" endtime="20190415 12:03:36.648" starttime="20190415 12:03:25.537"></status>
</kw>
<status status="PASS" endtime="20190415 12:03:36.648" starttime="20190415 12:03:25.537"></status>
</kw>
<kw name="When user "demo1" logs in with password "mode"">
<kw name="Input Username" library="resource">
<arguments>
<arg>${username}</arg>
</arguments>
<kw name="Input Text" library="SeleniumLibrary">
<doc>Types the given ``text`` into text field identified by ``locator``.</doc>
<arguments>
<arg>username_field</arg>
<arg>${username}</arg>
</arguments>
<msg timestamp="20190415 12:03:36.654" level="INFO">Typing text 'demo1' into text field 'username_field'.</msg>
<status status="PASS" endtime="20190415 12:03:36.758" starttime="20190415 12:03:36.653"></status>
</kw>
<status status="PASS" endtime="20190415 12:03:36.759" starttime="20190415 12:03:36.651"></status>
</kw>
<kw name="Input Password" library="resource">
<arguments>
<arg>${password}</arg>
</arguments>
<kw name="Input Text" library="SeleniumLibrary">
<doc>Types the given ``text`` into text field identified by ``locator``.</doc>
<arguments>
<arg>password_field</arg>
<arg>${password}</arg>
</arguments>
<msg timestamp="20190415 12:03:36.760" level="INFO">Typing text 'mode' into text field 'password_field'.</msg>
<status status="PASS" endtime="20190415 12:03:36.783" starttime="20190415 12:03:36.760"></status>
</kw>
<status status="PASS" endtime="20190415 12:03:36.783" starttime="20190415 12:03:36.759"></status>
</kw>
<kw name="Submit Credentials" library="resource">
<kw name="Click Button" library="SeleniumLibrary">
<doc>Clicks button identified by ``locator``.</doc>
<arguments>
<arg>login_button</arg>
</arguments>
<msg timestamp="20190415 12:03:36.784" level="INFO">Clicking button 'login_button'.</msg>
<status status="PASS" endtime="20190415 12:03:37.595" starttime="20190415 12:03:36.783"></status>
</kw>
<status status="PASS" endtime="20190415 12:03:37.595" starttime="20190415 12:03:36.783"></status>
</kw>
<status status="PASS" endtime="20190415 12:03:37.596" starttime="20190415 12:03:36.649"></status>
</kw>
<kw name="Then welcome page should be open" library="resource">
<kw name="Location Should Be" library="SeleniumLibrary">
<doc>Verifies that current URL is exactly ``url``.</doc>
<arguments>
<arg>${WELCOME URL}</arg>
</arguments>
<kw name="Capture Page Screenshot" library="SeleniumLibrary">
<doc>Takes screenshot of the current page and embeds it into log file.</doc>
<msg timestamp="20190415 12:03:37.646" html="yes" level="INFO"></td></tr><tr><td colspan="3"><a href="selenium-screenshot-4.png"><img src="selenium-screenshot-4.png" width="800px"></a></msg>
<status status="PASS" endtime="20190415 12:03:37.647" starttime="20190415 12:03:37.603"></status>
</kw>
<msg timestamp="20190415 12:03:37.647" level="FAIL">Location should have been 'http://localhost:7272/welcome.html' but was 'http://localhost:7272/error.html'.</msg>
<status status="FAIL" endtime="20190415 12:03:37.647" starttime="20190415 12:03:37.597"></status>
</kw>
<status status="FAIL" endtime="20190415 12:03:37.647" starttime="20190415 12:03:37.596"></status>
</kw>
<kw type="teardown" name="Close Browser" library="SeleniumLibrary">
<doc>Closes the current browser.</doc>
<status status="PASS" endtime="20190415 12:03:37.840" starttime="20190415 12:03:37.648"></status>
</kw>
<status status="FAIL" endtime="20190415 12:03:37.841" critical="yes" starttime="20190415 12:03:25.536">Location should have been 'http://localhost:7272/welcome.html' but was 'http://localhost:7272/error.html'.</status>
</test>
<doc>A test suite with a single Gherkin style test.
This test is functionally identical to the example in
valid_login.robot file.</doc>
<status status="FAIL" endtime="20190415 12:03:37.844" starttime="20190415 12:03:25.450"></status>
</suite>
<suite source="/home/amit/work/Robotframework/login_tests/invalid_login.robot" id="s1-s2" name="Invalid Login">
<kw type="setup" name="Open Browser To Login Page" library="resource">
<kw name="Open Browser" library="SeleniumLibrary">
<doc>Opens a new browser instance to the given ``url``.</doc>
<arguments>
<arg>${LOGIN URL}</arg>
<arg>${BROWSER}</arg>
</arguments>
<msg timestamp="20190415 12:03:37.863" level="INFO">Opening browser 'Firefox' to base url 'http://localhost:7272/'.</msg>
<kw name="Capture Page Screenshot" library="SeleniumLibrary">
<doc>Takes screenshot of the current page and embeds it into log file.</doc>
<status status="FAIL" endtime="20190415 12:03:42.871" starttime="20190415 12:03:42.870"></status>
</kw>
<msg timestamp="20190415 12:03:42.871" level="WARN">Keyword 'Capture Page Screenshot' could not be run on failure: Execution terminated by signal</msg>
<status status="FAIL" endtime="20190415 12:03:42.871" starttime="20190415 12:03:37.862"></status>
</kw>
<status status="FAIL" endtime="20190415 12:03:42.871" starttime="20190415 12:03:37.862"></status>
</kw>
<test id="s1-s2-t1" name="Invalid Username">
<tags>
<tag>robot:exit</tag>
</tags>
<status status="FAIL" endtime="20190415 12:03:42.872" critical="yes" starttime="20190415 12:03:42.871">Test execution stopped due to a fatal error.</status>
</test>
<test id="s1-s2-t2" name="Invalid Password">
<tags>
<tag>robot:exit</tag>
</tags>
<status status="FAIL" endtime="20190415 12:03:42.873" critical="yes" starttime="20190415 12:03:42.873">Test execution stopped due to a fatal error.</status>
</test>
<test id="s1-s2-t3" name="Invalid Username And Password">
<tags>
<tag>robot:exit</tag>
</tags>
<status status="FAIL" endtime="20190415 12:03:42.874" critical="yes" starttime="20190415 12:03:42.874">Test execution stopped due to a fatal error.</status>
</test>
<test id="s1-s2-t4" name="Empty Username">
<tags>
<tag>robot:exit</tag>
</tags>
<status status="FAIL" endtime="20190415 12:03:42.875" critical="yes" starttime="20190415 12:03:42.875">Test execution stopped due to a fatal error.</status>
</test>
<test id="s1-s2-t5" name="Empty Password">
<tags>
<tag>robot:exit</tag>
</tags>
<status status="FAIL" endtime="20190415 12:03:42.876" critical="yes" starttime="20190415 12:03:42.876">Test execution stopped due to a fatal error.</status>
</test>
<test id="s1-s2-t6" name="Empty Username And Password">
<tags>
<tag>robot:exit</tag>
</tags>
<status status="FAIL" endtime="20190415 12:03:42.877" critical="yes" starttime="20190415 12:03:42.876">Test execution stopped due to a fatal error.</status>
</test>
<kw type="teardown" name="Close Browser" library="SeleniumLibrary">
<doc>Closes the current browser.</doc>
<status status="PASS" endtime="20190415 12:03:42.878" starttime="20190415 12:03:42.878"></status>
</kw>
<doc>A test suite containing tests related to invalid login.
These tests are data-driven by their nature. They use a single
keyword, specified with Test Template setting, that is called
with different arguments to cover different scenarios.
This suite also demonstrates using setups and teardowns in
different levels.</doc>
<status status="FAIL" endtime="20190415 12:03:42.878" starttime="20190415 12:03:37.854">Suite setup failed:
Execution terminated by signal</status>
</suite>
<suite source="/home/amit/work/Robotframework/login_tests/login_page.robot" id="s1-s3" name="Login Page">
<test id="s1-s3-t1" name="Valid Login">
<tags>
<tag>robot:exit</tag>
</tags>
<status status="FAIL" endtime="20190415 12:03:42.882" critical="yes" starttime="20190415 12:03:42.882">Test execution stopped due to a fatal error.</status>
</test>
<doc>A test suite containing tests related to login page.
This test has a workflow that is created using keywords in
the imported resource file.</doc>
<status status="FAIL" endtime="20190415 12:03:42.883" starttime="20190415 12:03:42.881"></status>
</suite>
<suite source="/home/amit/work/Robotframework/login_tests/valid_login.robot" id="s1-s4" name="Valid Login">
<test id="s1-s4-t1" name="Valid Login">
<tags>
<tag>robot:exit</tag>
</tags>
<status status="FAIL" endtime="20190415 12:03:42.886" critical="yes" starttime="20190415 12:03:42.885">Test execution stopped due to a fatal error.</status>
</test>
<doc>A test suite with a single test for valid login.
This test has a workflow that is created using keywords in
the imported resource file.</doc>
<status status="FAIL" endtime="20190415 12:03:42.886" starttime="20190415 12:03:42.884"></status>
</suite>
<status status="FAIL" endtime="20190415 12:03:42.889" starttime="20190415 12:03:25.433"></status>
</suite>
<statistics>
<total>
<stat fail="9" pass="0">Critical Tests</stat>
<stat fail="9" pass="0">All Tests</stat>
</total>
<tag>
<stat info="combined" fail="1" combined="NOT robot:exit" pass="0">NOT robot:exit</stat>
<stat fail="8" pass="0">robot:exit</stat>
</tag>
<suite>
<stat fail="9" id="s1" name="Login Tests" pass="0">Login Tests</stat>
<stat fail="1" id="s1-s1" name="Gherkin Login" pass="0">Login Tests.Gherkin Login</stat>
<stat fail="6" id="s1-s2" name="Invalid Login" pass="0">Login Tests.Invalid Login</stat>
<stat fail="1" id="s1-s3" name="Login Page" pass="0">Login Tests.Login Page</stat>
<stat fail="1" id="s1-s4" name="Valid Login" pass="0">Login Tests.Valid Login</stat>
</suite>
</statistics>
<errors>
<msg timestamp="20190415 12:03:42.871" level="WARN">Keyword 'Capture Page Screenshot' could not be run on failure: Execution terminated by signal</msg>
</errors>
</robot>