-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.xml
175 lines (175 loc) · 9.51 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
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.11.4 on win32)" generated="20231124 16:53:40.564" rpa="false" schemaversion="4">
<suite id="s1" name="Exercise" source="d:\Users\JCA\Documents\Learning\Velv Robot Test\Tests\Exercise.robot">
<test id="s1-t1" name="Velv - CACIB Exercise" line="10">
<kw name="Base.Start_Browser "http://automationexercise.com"" library="Base" type="SETUP" sourcename="Base.Start_Browser "${URL}"">
<doc>Open Incognito Browser on the provided URL</doc>
<kw name="Open Browser" library="SeleniumLibrary">
<arg>About:blank</arg>
<arg>${BROWSER}</arg>
<arg>options=${INCOGNITO_OPTIONS}</arg>
<doc>Opens a new browser instance to the optional ``url``.</doc>
<msg timestamp="20231124 16:53:40.784" level="INFO">Opening browser 'Chrome' to base url 'About:blank'.</msg>
<status status="PASS" starttime="20231124 16:53:40.783" endtime="20231124 16:53:42.323"/>
</kw>
<kw name="Set Window Size" library="SeleniumLibrary">
<arg>${BROWSER_WIDTH}</arg>
<arg>${BROWSER_HEIGHT}</arg>
<doc>Sets current windows size to given ``width`` and ``height``.</doc>
<status status="PASS" starttime="20231124 16:53:42.324" endtime="20231124 16:53:42.447"/>
</kw>
<kw name="Delete All Cookies" library="SeleniumLibrary">
<doc>Deletes all cookies.</doc>
<status status="PASS" starttime="20231124 16:53:42.447" endtime="20231124 16:53:42.453"/>
</kw>
<kw name="Set Selenium Implicit Wait" library="SeleniumLibrary">
<arg>${TIMEOUT}</arg>
<doc>Sets the implicit wait value used by Selenium.</doc>
<status status="PASS" starttime="20231124 16:53:42.454" endtime="20231124 16:53:42.455"/>
</kw>
<kw name="Go To" library="SeleniumLibrary">
<arg>${URL}</arg>
<doc>Navigates the current browser window to the provided ``url``.</doc>
<msg timestamp="20231124 16:53:42.456" level="INFO">Opening url 'http://automationexercise.com'</msg>
<status status="PASS" starttime="20231124 16:53:42.455" endtime="20231124 16:53:45.049"/>
</kw>
<status status="PASS" starttime="20231124 16:53:40.782" endtime="20231124 16:53:45.049"/>
</kw>
<kw name="Navigate to "Products" Page" library="BasePage" sourcename="Navigate to "${Link}" Page">
<kw name="Scroll Element Into View" library="SeleniumLibrary">
<arg>//a[contains(text(),"${Link}")]</arg>
<doc>Scrolls the element identified by ``locator`` into view.</doc>
<status status="PASS" starttime="20231124 16:53:45.050" endtime="20231124 16:53:45.347"/>
</kw>
<kw name="Click Element" library="SeleniumLibrary">
<arg>//a[contains(text(),"${Link}")]</arg>
<doc>Click the element identified by ``locator``.</doc>
<msg timestamp="20231124 16:53:45.348" level="INFO">Clicking element '//a[contains(text(),"Products")]'.</msg>
<status status="PASS" starttime="20231124 16:53:45.347" endtime="20231124 16:53:48.113"/>
</kw>
<status status="PASS" starttime="20231124 16:53:45.050" endtime="20231124 16:53:48.113"/>
</kw>
<kw name="Verify search bar is visible" library="ProductsPage">
<kw name="Wait Until Page Contains Element" library="SeleniumLibrary">
<arg>${inptProductSearch}</arg>
<doc>Waits until the element ``locator`` appears on the current page.</doc>
<status status="PASS" starttime="20231124 16:53:48.114" endtime="20231124 16:53:48.125"/>
</kw>
<status status="PASS" starttime="20231124 16:53:48.113" endtime="20231124 16:53:48.125"/>
</kw>
<kw name="Write 'men tshirt'" library="ProductsPage" sourcename="Write '${ProductName}'">
<kw name="Input Text" library="SeleniumLibrary">
<arg>${inptProductSearch}</arg>
<arg>${ProductName}</arg>
<doc>Types the given ``text`` into the text field identified by ``locator``.</doc>
<msg timestamp="20231124 16:53:48.127" level="INFO">Typing text 'men tshirt' into text field '//input[@id="search_product"]'.</msg>
<status status="PASS" starttime="20231124 16:53:48.126" endtime="20231124 16:53:48.203"/>
</kw>
<status status="PASS" starttime="20231124 16:53:48.126" endtime="20231124 16:53:48.203"/>
</kw>
<kw name="Click on the 'Search Button'" library="ProductsPage">
<kw name="Click Button" library="SeleniumLibrary">
<arg>${btnSubmitProduct}</arg>
<doc>Clicks the button identified by ``locator``.</doc>
<msg timestamp="20231124 16:53:48.205" level="INFO">Clicking button '//button[@id="submit_search"]'.</msg>
<status status="PASS" starttime="20231124 16:53:48.204" endtime="20231124 16:53:49.674"/>
</kw>
<status status="PASS" starttime="20231124 16:53:48.203" endtime="20231124 16:53:49.674"/>
</kw>
<kw name="Verify 'Men Tshirt' is visible" library="ProductsPage" sourcename="Verify '${ProductName}' is visible">
<kw name="Element Should Be Visible" library="SeleniumLibrary">
<arg>//div[@class="single-products"]//p[contains(text(),"${ProductName}")]</arg>
<doc>Verifies that the element identified by ``locator`` is visible.</doc>
<msg timestamp="20231124 16:53:49.695" level="INFO">Element '//div[@class="single-products"]//p[contains(text(),"Men Tshirt")]' is displayed.</msg>
<status status="PASS" starttime="20231124 16:53:49.675" endtime="20231124 16:53:49.696"/>
</kw>
<status status="PASS" starttime="20231124 16:53:49.675" endtime="20231124 16:53:49.696"/>
</kw>
<kw name="Add product to cart" library="ProductsPage">
<kw name="Get Element Attribute" library="SeleniumLibrary">
<var>${Price}</var>
<arg>${txtProductPrice}</arg>
<arg>text()</arg>
<doc>Returns the value of ``attribute`` from the element ``locator``.</doc>
<msg timestamp="20231124 16:53:49.716" level="INFO">${Price} = None</msg>
<status status="PASS" starttime="20231124 16:53:49.696" endtime="20231124 16:53:49.716"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${Price_Total}</arg>
<arg>${Price}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20231124 16:53:49.717" level="INFO">${Price_Total} = None</msg>
<status status="PASS" starttime="20231124 16:53:49.716" endtime="20231124 16:53:49.718"/>
</kw>
<kw name="Scroll Element Into View" library="SeleniumLibrary">
<arg>${btnListedAddToCart}</arg>
<doc>Scrolls the element identified by ``locator`` into view.</doc>
<status status="PASS" starttime="20231124 16:53:49.718" endtime="20231124 16:53:50.018"/>
</kw>
<kw name="Click Element" library="SeleniumLibrary">
<arg>${btnListedAddToCart}</arg>
<doc>Click the element identified by ``locator``.</doc>
<msg timestamp="20231124 16:53:50.019" level="INFO">Clicking element '(//div[@class="single-products"]//a[contains(@class,"add-to-cart")])[1]'.</msg>
<status status="PASS" starttime="20231124 16:53:50.018" endtime="20231124 16:53:50.049"/>
</kw>
<status status="PASS" starttime="20231124 16:53:49.696" endtime="20231124 16:53:50.049"/>
</kw>
<kw name="Click on 'Cart' button" library="ProductsPage">
<kw name="Click Element" library="SeleniumLibrary">
<arg>${lnkCart}</arg>
<doc>Click the element identified by ``locator``.</doc>
<msg timestamp="20231124 16:53:50.051" level="INFO">Clicking element '//div[@class="modal-body"]//a[@href="/view_cart"]'.</msg>
<status status="PASS" starttime="20231124 16:53:50.050" endtime="20231124 16:53:50.761"/>
</kw>
<status status="PASS" starttime="20231124 16:53:50.050" endtime="20231124 16:53:50.761"/>
</kw>
<kw name="Verify that the product is visible in cart" library="CartPage">
<kw name="Wait Until Element Is Visible" library="SeleniumLibrary">
<arg>${lstFirstProduct}</arg>
<doc>Waits until the element ``locator`` is visible.</doc>
<status status="PASS" starttime="20231124 16:53:50.762" endtime="20231124 16:53:50.781"/>
</kw>
<status status="PASS" starttime="20231124 16:53:50.761" endtime="20231124 16:53:50.782"/>
</kw>
<kw name="Verify that product value are correct" library="CartPage">
<kw name="Element Attribute Value Should Be" library="SeleniumLibrary">
<arg>${txtProductTotalPrice}</arg>
<arg>text()</arg>
<arg>${Price_Total}</arg>
<doc>Verifies element identified by ``locator`` contains expected attribute value.</doc>
<msg timestamp="20231124 16:53:50.801" level="INFO">Element '//p[@class="cart_total_price"]' attribute 'text()' contains value 'None'.</msg>
<status status="PASS" starttime="20231124 16:53:50.783" endtime="20231124 16:53:50.802"/>
</kw>
<status status="PASS" starttime="20231124 16:53:50.782" endtime="20231124 16:53:50.802"/>
</kw>
<kw name="Base.Finish_Test" library="Base" type="TEARDOWN">
<doc>Take a screenshot and close Browser</doc>
<kw name="Capture Page Screenshot" library="SeleniumLibrary">
<doc>Takes a screenshot of the current page and embeds it into a log file.</doc>
<msg timestamp="20231124 16:53:50.898" level="INFO" html="true"></td></tr><tr><td colspan="3"><a href="selenium-screenshot-1.png"><img src="selenium-screenshot-1.png" width="800px"></a></msg>
<status status="PASS" starttime="20231124 16:53:50.803" endtime="20231124 16:53:50.898"/>
</kw>
<kw name="Close Browser" library="SeleniumLibrary">
<doc>Closes the current browser.</doc>
<status status="PASS" starttime="20231124 16:53:50.898" endtime="20231124 16:53:53.036"/>
</kw>
<status status="PASS" starttime="20231124 16:53:50.802" endtime="20231124 16:53:53.036"/>
</kw>
<status status="PASS" starttime="20231124 16:53:40.781" endtime="20231124 16:53:53.036"/>
</test>
<doc>Exercise for Velv - CACIB Robot Framework Test</doc>
<status status="PASS" starttime="20231124 16:53:40.570" endtime="20231124 16:53:53.038"/>
</suite>
<statistics>
<total>
<stat pass="1" fail="0" skip="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="1" fail="0" skip="0" id="s1" name="Exercise">Exercise</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>