-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreport.html
More file actions
486 lines (449 loc) · 39 KB
/
report.html
File metadata and controls
486 lines (449 loc) · 39 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
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>report.html</title>
<link href="assets/style.css" rel="stylesheet" type="text/css"/></head>
<body onLoad="init()">
<script>/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */
function toArray(iter) {
if (iter === null) {
return null;
}
return Array.prototype.slice.call(iter);
}
function find(selector, elem) { // eslint-disable-line no-redeclare
if (!elem) {
elem = document;
}
return elem.querySelector(selector);
}
function findAll(selector, elem) {
if (!elem) {
elem = document;
}
return toArray(elem.querySelectorAll(selector));
}
function sortColumn(elem) {
toggleSortStates(elem);
const colIndex = toArray(elem.parentNode.childNodes).indexOf(elem);
let key;
if (elem.classList.contains('result')) {
key = keyResult;
} else if (elem.classList.contains('links')) {
key = keyLink;
} else {
key = keyAlpha;
}
sortTable(elem, key(colIndex));
}
function showAllExtras() { // eslint-disable-line no-unused-vars
findAll('.col-result').forEach(showExtras);
}
function hideAllExtras() { // eslint-disable-line no-unused-vars
findAll('.col-result').forEach(hideExtras);
}
function showExtras(colresultElem) {
const extras = colresultElem.parentNode.nextElementSibling;
const expandcollapse = colresultElem.firstElementChild;
extras.classList.remove('collapsed');
expandcollapse.classList.remove('expander');
expandcollapse.classList.add('collapser');
}
function hideExtras(colresultElem) {
const extras = colresultElem.parentNode.nextElementSibling;
const expandcollapse = colresultElem.firstElementChild;
extras.classList.add('collapsed');
expandcollapse.classList.remove('collapser');
expandcollapse.classList.add('expander');
}
function showFilters() {
let visibleString = getQueryParameter('visible') || 'all';
visibleString = visibleString.toLowerCase();
const checkedItems = visibleString.split(',');
const filterItems = document.getElementsByClassName('filter');
for (let i = 0; i < filterItems.length; i++) {
filterItems[i].hidden = false;
if (visibleString != 'all') {
filterItems[i].checked = checkedItems.includes(filterItems[i].getAttribute('data-test-result'));
filterTable(filterItems[i]);
}
}
}
function addCollapse() {
// Add links for show/hide all
const resulttable = find('table#results-table');
const showhideall = document.createElement('p');
showhideall.innerHTML = '<a href="javascript:showAllExtras()">Show all details</a> / ' +
'<a href="javascript:hideAllExtras()">Hide all details</a>';
resulttable.parentElement.insertBefore(showhideall, resulttable);
// Add show/hide link to each result
findAll('.col-result').forEach(function(elem) {
const collapsed = getQueryParameter('collapsed') || 'Passed';
const extras = elem.parentNode.nextElementSibling;
const expandcollapse = document.createElement('span');
if (extras.classList.contains('collapsed')) {
expandcollapse.classList.add('expander');
} else if (collapsed.includes(elem.innerHTML)) {
extras.classList.add('collapsed');
expandcollapse.classList.add('expander');
} else {
expandcollapse.classList.add('collapser');
}
elem.appendChild(expandcollapse);
elem.addEventListener('click', function(event) {
if (event.currentTarget.parentNode.nextElementSibling.classList.contains('collapsed')) {
showExtras(event.currentTarget);
} else {
hideExtras(event.currentTarget);
}
});
});
}
function getQueryParameter(name) {
const match = RegExp('[?&]' + name + '=([^&]*)').exec(window.location.search);
return match && decodeURIComponent(match[1].replace(/\+/g, ' '));
}
function init () { // eslint-disable-line no-unused-vars
resetSortHeaders();
addCollapse();
showFilters();
sortColumn(find('.initial-sort'));
findAll('.sortable').forEach(function(elem) {
elem.addEventListener('click',
function() {
sortColumn(elem);
}, false);
});
}
function sortTable(clicked, keyFunc) {
const rows = findAll('.results-table-row');
const reversed = !clicked.classList.contains('asc');
const sortedRows = sort(rows, keyFunc, reversed);
/* Whole table is removed here because browsers acts much slower
* when appending existing elements.
*/
const thead = document.getElementById('results-table-head');
document.getElementById('results-table').remove();
const parent = document.createElement('table');
parent.id = 'results-table';
parent.appendChild(thead);
sortedRows.forEach(function(elem) {
parent.appendChild(elem);
});
document.getElementsByTagName('BODY')[0].appendChild(parent);
}
function sort(items, keyFunc, reversed) {
const sortArray = items.map(function(item, i) {
return [keyFunc(item), i];
});
sortArray.sort(function(a, b) {
const keyA = a[0];
const keyB = b[0];
if (keyA == keyB) return 0;
if (reversed) {
return keyA < keyB ? 1 : -1;
} else {
return keyA > keyB ? 1 : -1;
}
});
return sortArray.map(function(item) {
const index = item[1];
return items[index];
});
}
function keyAlpha(colIndex) {
return function(elem) {
return elem.childNodes[1].childNodes[colIndex].firstChild.data.toLowerCase();
};
}
function keyLink(colIndex) {
return function(elem) {
const dataCell = elem.childNodes[1].childNodes[colIndex].firstChild;
return dataCell == null ? '' : dataCell.innerText.toLowerCase();
};
}
function keyResult(colIndex) {
return function(elem) {
const strings = ['Error', 'Failed', 'Rerun', 'XFailed', 'XPassed',
'Skipped', 'Passed'];
return strings.indexOf(elem.childNodes[1].childNodes[colIndex].firstChild.data);
};
}
function resetSortHeaders() {
findAll('.sort-icon').forEach(function(elem) {
elem.parentNode.removeChild(elem);
});
findAll('.sortable').forEach(function(elem) {
const icon = document.createElement('div');
icon.className = 'sort-icon';
icon.textContent = 'vvv';
elem.insertBefore(icon, elem.firstChild);
elem.classList.remove('desc', 'active');
elem.classList.add('asc', 'inactive');
});
}
function toggleSortStates(elem) {
//if active, toggle between asc and desc
if (elem.classList.contains('active')) {
elem.classList.toggle('asc');
elem.classList.toggle('desc');
}
//if inactive, reset all other functions and add ascending active
if (elem.classList.contains('inactive')) {
resetSortHeaders();
elem.classList.remove('inactive');
elem.classList.add('active');
}
}
function isAllRowsHidden(value) {
return value.hidden == false;
}
function filterTable(elem) { // eslint-disable-line no-unused-vars
const outcomeAtt = 'data-test-result';
const outcome = elem.getAttribute(outcomeAtt);
const classOutcome = outcome + ' results-table-row';
const outcomeRows = document.getElementsByClassName(classOutcome);
for(let i = 0; i < outcomeRows.length; i++){
outcomeRows[i].hidden = !elem.checked;
}
const rows = findAll('.results-table-row').filter(isAllRowsHidden);
const allRowsHidden = rows.length == 0 ? true : false;
const notFoundMessage = document.getElementById('not-found-message');
notFoundMessage.hidden = !allRowsHidden;
}
</script>
<h1>report.html</h1>
<p>Report generated on 08-Jul-2023 at 22:24:33 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v3.2.0</p>
<h2>Summary</h2>
<p>12 tests ran in 81.27 seconds. </p>
<p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="passed">10 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="failed">2 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filterTable(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>
<h2>Results</h2>
<table id="results-table">
<thead id="results-table-head">
<tr>
<th class="sortable result initial-sort" col="result">Result</th>
<th class="sortable" col="name">Test</th>
<th class="sortable" col="duration">Duration</th>
<th class="sortable links" col="links">Links</th></tr>
<tr hidden="true" id="not-found-message">
<th colspan="4">No results found. Try to check the filters</th></tr></thead>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">tests/test_order_name_problem.py::TestOrderProblem::test_order[get_data0]</td>
<td class="col-duration">4.70</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div><div><img src="tests/test_order_name_problem.py_TestOrderProblem_test_order[get_data0].png" alt="screenshot" style="width:304px;height:228px;" onclick="window.open(this.src)" align="right"/></div></div>
<div class="log">self = <tests.test_order_name_problem.TestOrderProblem object at 0x7f2d46903940>, get_data = {'password': 'secret_sauce', 'username': 'problem_user'}<br/><br/> def test_order(self, get_data):<br/> log = super().get_logger()<br/> log_error_messages = []<br/> prices = Price(self.driver)<br/> ordered_A_Z = ['Sauce Labs Backpack', 'Sauce Labs Bike Light', 'Sauce Labs Bolt T-Shirt',<br/> 'Sauce Labs Fleece Jacket', 'Sauce Labs Onesie', 'Test.allTheThings() T-Shirt (Red)']<br/> ordered_Z_A = sorted(ordered_A_Z, reverse=True)<br/> ordered_price = [7.99, 9.99, 15.99, 15.99, 29.99, 49.99]<br/> ordered_price_reverse = sorted(ordered_price, reverse=True)<br/> # Login step<br/> log.info("##### 1. Login step #####")<br/> <br/> login_page = Login(self.driver)<br/> log.info(f"Username is {get_data['username']}")<br/> login_page.get_username().send_keys(get_data["username"])<br/> log.info(f"Password is {get_data['password']}")<br/> login_page.get_password().send_keys(get_data["password"])<br/> login_page.login_button().click()<br/> url = super().get_url()<br/> assert "https://www.saucedemo.com/inventory.html" == url, "Login failed"<br/> log.info("Login is pass")<br/> <br/> # Price step<br/> log.info("##### 2. Order step #####")<br/> items = prices.get_prices()<br/> <br/> order_menu = self.driver.find_element(By.XPATH, "//select[@class='product_sort_container']")<br/> order_options = order_menu.find_elements(By.TAG_NAME, "option")<br/> dropdown_list = Select(self.driver.find_element(By.XPATH, "//select[@class='product_sort_container']"))<br/> <br/> for index, item in enumerate(order_options):<br/> dropdown = Select(self.driver.find_element(By.XPATH, "//select[@class='product_sort_container']"))<br/> dropdown.select_by_index(index)<br/> <br/> list_elements = []<br/> list_prices = []<br/> for element, i in enumerate(range(len(items))):<br/> list_elements.append(prices.get_element_name(index))<br/> price = prices.get_price_element(i)<br/> list_prices.append(float(price[1::]))<br/> <br/> if index == 0:<br/> if ordered_A_Z == list_elements:<br/> log.info(f"Items name are ordered correctly A-Z order")<br/> else:<br/> error_message = "Order incorrectly A-Z order"<br/> log.error(error_message)<br/> log_error_messages.append(error_message)<br/> elif index == 1:<br/> if ordered_Z_A == list_elements:<br/> log.info(f"Items name are ordered correctly Z-A order")<br/> else:<br/> error_message = "Order incorrectly Z-A order"<br/> log.error(error_message)<br/> log_error_messages.append(error_message)<br/> elif index == 2:<br/> if ordered_price == list_prices:<br/> log.info(f"Items name are ordered correctly Low to High")<br/> else:<br/> error_message = "Order incorrectly Low to High"<br/> log.error(error_message)<br/> log_error_messages.append(error_message)<br/> elif index == 3:<br/> if ordered_price_reverse == list_prices:<br/> log.info(f"Items name are ordered correctly High to Low")<br/> else:<br/> error_message = "Order incorrectly High to Low"<br/> log.error(error_message)<br/> log_error_messages.append(error_message)<br/> <br/>> assert len(log_error_messages) == 0, f"Error log found: {log_error_messages}"<br/><span class="error">E AssertionError: Error log found: ['Order incorrectly A-Z order', 'Order incorrectly Z-A order', 'Order incorrectly Low to High', 'Order incorrectly High to Low']</span><br/><span class="error">E assert 4 == 0</span><br/><span class="error">E + where 4 = len(['Order incorrectly A-Z order', 'Order incorrectly Z-A order', 'Order incorrectly Low to High', 'Order incorrectly High to Low'])</span><br/><br/>tests/test_order_name_problem.py:90: AssertionError<br/> -------------------------------Captured log call-------------------------------- <br/>INFO test_order:test_order_name_problem.py:30 ##### 1. Login step #####
INFO test_order:test_order_name_problem.py:33 Username is problem_user
INFO test_order:test_order_name_problem.py:35 Password is secret_sauce
INFO test_order:test_order_name_problem.py:40 Login is pass
INFO test_order:test_order_name_problem.py:43 ##### 2. Order step #####
ERROR test_order:test_order_name_problem.py:66 Order incorrectly A-Z order
ERROR test_order:test_order_name_problem.py:73 Order incorrectly Z-A order
ERROR test_order:test_order_name_problem.py:80 Order incorrectly Low to High
ERROR test_order:test_order_name_problem.py:87 Order incorrectly High to Low<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">tests/test_price_problem.py::TestPrice::test_price[get_data0]</td>
<td class="col-duration">4.74</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div><div><img src="tests/test_price_problem.py_TestPrice_test_price[get_data0].png" alt="screenshot" style="width:304px;height:228px;" onclick="window.open(this.src)" align="right"/></div></div>
<div class="log">self = <tests.test_price_problem.TestPrice object at 0x7f2d469024d0>, get_data = {'password': 'secret_sauce', 'username': 'problem_user'}<br/><br/> def test_price(self, get_data):<br/> log = super().get_logger()<br/> prices = Price(self.driver)<br/> <br/> # Login step<br/> log.info("##### 1. Login step #####")<br/> <br/> login_page = Login(self.driver)<br/> log.info(f"Username is {get_data['username']}")<br/> login_page.get_username().send_keys(get_data["username"])<br/> log.info(f"Password is {get_data['password']}")<br/> login_page.get_password().send_keys(get_data["password"])<br/> login_page.login_button().click()<br/> url = super().get_url()<br/> assert "https://www.saucedemo.com/inventory.html" == url, "Login failed"<br/> log.info("Login is pass")<br/> <br/> # Price step<br/> log.info("##### 2. Price step from items page #####")<br/> <br/> log.info("Calculate total price")<br/> items = prices.get_prices()<br/> price_sum = sum(<br/> [float(item.find_element(By.XPATH, ".//div[@class='inventory_item_price']").text[1:]) for item in items])<br/> log.info(f"All elements price is {price_sum}")<br/> <br/> log.info("##### 3. Price step from each item page and add to cart #####")<br/> list_price = []<br/> price, item_price = None, None<br/> for item, index in enumerate(range(len(items))):<br/> try:<br/> elements = prices.get_prices()<br/> price = prices.get_price_element(index)<br/> price = float(price[1::])<br/> prices.add_to_cart(index)<br/> element_name = prices.get_element_name(index)<br/> prices.get_element_link(index)<br/> item_price = prices.get_element_price_page()<br/> log.info(f"Element name = {element_name} and price {item_price}")<br/> log.info(f"Price from main page {price} vs, price on item page {item_price}")<br/> list_price.append(float(item_price[1::]))<br/> assert price == float(item_price[1::])<br/> self.driver.execute_script("window.history.go(-1)")<br/> except ValueError:<br/> log.error("Error: Failed to convert price to float")<br/> self.driver.execute_script("window.history.go(-1)")<br/> except NoSuchElementException:<br/> log.error("Error: Element not found")<br/> self.driver.execute_script("window.history.go(-1)")<br/> except AssertionError:<br/> log.error(f"Assertion failed: Expected price {price}, Actual price {float(item_price[1:])}")<br/> self.driver.execute_script("window.history.go(-1)")<br/> sum_list_price = sum(list_price)<br/> <br/> try:<br/> assert price_sum == sum_list_price<br/> log.info(f"Price sum {price_sum} == sum_list price {sum_list_price}")<br/> except AssertionError as e:<br/> log.error(f"Assertion failed: Expected sum {price_sum}, Actual price {sum_list_price}")<br/>> raise e<br/><br/>tests/test_price_problem.py:78: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>self = <tests.test_price_problem.TestPrice object at 0x7f2d469024d0>, get_data = {'password': 'secret_sauce', 'username': 'problem_user'}<br/><br/> def test_price(self, get_data):<br/> log = super().get_logger()<br/> prices = Price(self.driver)<br/> <br/> # Login step<br/> log.info("##### 1. Login step #####")<br/> <br/> login_page = Login(self.driver)<br/> log.info(f"Username is {get_data['username']}")<br/> login_page.get_username().send_keys(get_data["username"])<br/> log.info(f"Password is {get_data['password']}")<br/> login_page.get_password().send_keys(get_data["password"])<br/> login_page.login_button().click()<br/> url = super().get_url()<br/> assert "https://www.saucedemo.com/inventory.html" == url, "Login failed"<br/> log.info("Login is pass")<br/> <br/> # Price step<br/> log.info("##### 2. Price step from items page #####")<br/> <br/> log.info("Calculate total price")<br/> items = prices.get_prices()<br/> price_sum = sum(<br/> [float(item.find_element(By.XPATH, ".//div[@class='inventory_item_price']").text[1:]) for item in items])<br/> log.info(f"All elements price is {price_sum}")<br/> <br/> log.info("##### 3. Price step from each item page and add to cart #####")<br/> list_price = []<br/> price, item_price = None, None<br/> for item, index in enumerate(range(len(items))):<br/> try:<br/> elements = prices.get_prices()<br/> price = prices.get_price_element(index)<br/> price = float(price[1::])<br/> prices.add_to_cart(index)<br/> element_name = prices.get_element_name(index)<br/> prices.get_element_link(index)<br/> item_price = prices.get_element_price_page()<br/> log.info(f"Element name = {element_name} and price {item_price}")<br/> log.info(f"Price from main page {price} vs, price on item page {item_price}")<br/> list_price.append(float(item_price[1::]))<br/> assert price == float(item_price[1::])<br/> self.driver.execute_script("window.history.go(-1)")<br/> except ValueError:<br/> log.error("Error: Failed to convert price to float")<br/> self.driver.execute_script("window.history.go(-1)")<br/> except NoSuchElementException:<br/> log.error("Error: Element not found")<br/> self.driver.execute_script("window.history.go(-1)")<br/> except AssertionError:<br/> log.error(f"Assertion failed: Expected price {price}, Actual price {float(item_price[1:])}")<br/> self.driver.execute_script("window.history.go(-1)")<br/> sum_list_price = sum(list_price)<br/> <br/> try:<br/>> assert price_sum == sum_list_price<br/><span class="error">E assert 129.94 == 119.94999999999999</span><br/><br/>tests/test_price_problem.py:74: AssertionError<br/> -------------------------------Captured log call-------------------------------- <br/>INFO test_price:test_price_problem.py:24 ##### 1. Login step #####
INFO test_price:test_price_problem.py:27 Username is problem_user
INFO test_price:test_price_problem.py:29 Password is secret_sauce
INFO test_price:test_price_problem.py:34 Login is pass
INFO test_price:test_price_problem.py:37 ##### 2. Price step from items page #####
INFO test_price:test_price_problem.py:39 Calculate total price
INFO test_price:test_price_problem.py:43 All elements price is 129.94
INFO test_price:test_price_problem.py:45 ##### 3. Price step from each item page and add to cart #####
INFO test_price:test_price_problem.py:57 Element name = Sauce Labs Backpack and price $49.99
INFO test_price:test_price_problem.py:58 Price from main page 29.99 vs, price on item page $49.99
ERROR test_price:test_price_problem.py:69 Assertion failed: Expected price 29.99, Actual price 49.99
INFO test_price:test_price_problem.py:57 Element name = Sauce Labs Bike Light and price $15.99
INFO test_price:test_price_problem.py:58 Price from main page 9.99 vs, price on item page $15.99
ERROR test_price:test_price_problem.py:69 Assertion failed: Expected price 9.99, Actual price 15.99
INFO test_price:test_price_problem.py:57 Element name = Sauce Labs Bolt T-Shirt and price $7.99
INFO test_price:test_price_problem.py:58 Price from main page 15.99 vs, price on item page $7.99
ERROR test_price:test_price_problem.py:69 Assertion failed: Expected price 15.99, Actual price 7.99
INFO test_price:test_price_problem.py:57 Element name = Sauce Labs Fleece Jacket and price $√-1
INFO test_price:test_price_problem.py:58 Price from main page 49.99 vs, price on item page $√-1
ERROR test_price:test_price_problem.py:63 Error: Failed to convert price to float
INFO test_price:test_price_problem.py:57 Element name = Sauce Labs Onesie and price $15.99
INFO test_price:test_price_problem.py:58 Price from main page 7.99 vs, price on item page $15.99
ERROR test_price:test_price_problem.py:69 Assertion failed: Expected price 7.99, Actual price 15.99
INFO test_price:test_price_problem.py:57 Element name = Test.allTheThings() T-Shirt (Red) and price $29.99
INFO test_price:test_price_problem.py:58 Price from main page 15.99 vs, price on item page $29.99
ERROR test_price:test_price_problem.py:69 Assertion failed: Expected price 15.99, Actual price 29.99
ERROR test_price:test_price_problem.py:77 Assertion failed: Expected sum 129.94, Actual price 119.94999999999999<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">tests/test_cart.py::TestOrderStandard::test_order[get_data0]</td>
<td class="col-duration">4.75</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_order:test_cart.py:26 ##### 1. Login step #####
INFO test_order:test_cart.py:29 Username is standard_user
INFO test_order:test_cart.py:31 Password is secret_sauce
INFO test_order:test_cart.py:36 Login is pass
INFO test_order:test_cart.py:38 ##### 2. Add to cart step #####
ERROR test_order:test_cart.py:45 Cart number is incorrectly, expected = 0, actually = 1
ERROR test_order:test_cart.py:45 Cart number is incorrectly, expected = 1, actually = 2
ERROR test_order:test_cart.py:45 Cart number is incorrectly, expected = 2, actually = 3
ERROR test_order:test_cart.py:45 Cart number is incorrectly, expected = 3, actually = 4
ERROR test_order:test_cart.py:45 Cart number is incorrectly, expected = 4, actually = 5
ERROR test_order:test_cart.py:45 Cart number is incorrectly, expected = 5, actually = 6
INFO test_order:test_cart.py:47 ##### 2. Click on cart button step #####
ERROR test_order:test_cart.py:53 Cart number is incorrectly, expected = [<selenium.webdriver.remote.webelement.WebElement (session="5f43b81fde2f3c3d823b58deae03c4d4", element="6A3E4538CB0252DA89C714705D15E62E_element_15")>, <selenium.webdriver.remote.webelement.WebElement (session="5f43b81fde2f3c3d823b58deae03c4d4", element="6A3E4538CB0252DA89C714705D15E62E_element_16")>, <selenium.webdriver.remote.webelement.WebElement (session="5f43b81fde2f3c3d823b58deae03c4d4", element="6A3E4538CB0252DA89C714705D15E62E_element_17")>, <selenium.webdriver.remote.webelement.WebElement (session="5f43b81fde2f3c3d823b58deae03c4d4", element="6A3E4538CB0252DA89C714705D15E62E_element_18")>, <selenium.webdriver.remote.webelement.WebElement (session="5f43b81fde2f3c3d823b58deae03c4d4", element="6A3E4538CB0252DA89C714705D15E62E_element_19")>, <selenium.webdriver.remote.webelement.WebElement (session="5f43b81fde2f3c3d823b58deae03c4d4", element="6A3E4538CB0252DA89C714705D15E62E_element_20")>], actually = 6<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">tests/test_login_incorrect_password.py::TestLogin::test_standard_login[get_data0]</td>
<td class="col-duration">2.13</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_standard_login:test_login_incorrect_password.py:18 Username is incorrect
INFO test_standard_login:test_login_incorrect_password.py:20 Password is secret_sauce
INFO test_standard_login:test_login_incorrect_password.py:25 Login is locked<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">tests/test_login_incorrect_username.py::TestLogin::test_standard_login[get_data0]</td>
<td class="col-duration">1.98</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_standard_login:test_login_incorrect_username.py:18 Username is incorrect
INFO test_standard_login:test_login_incorrect_username.py:20 Password is secret_sauce
INFO test_standard_login:test_login_incorrect_username.py:25 Login is locked<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">tests/test_login_locked.py::TestLogin::test_standard_login[get_data0]</td>
<td class="col-duration">2.03</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_standard_login:test_login_locked.py:18 Username is locked_out_user
INFO test_standard_login:test_login_locked.py:20 Password is secret_sauce
INFO test_standard_login:test_login_locked.py:25 Login is locked<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">tests/test_login_performance.py::TestPrice::test_price[get_data0]</td>
<td class="col-duration">7.11</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_price:test_login_performance.py:22 ##### 1. Login step #####
INFO test_price:test_login_performance.py:25 Username is performance_glitch_user
INFO test_price:test_login_performance.py:27 Password is secret_sauce
INFO test_price:test_login_performance.py:32 Login is pass<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">tests/test_login_problem.py::TestLogin::test_standard_login[get_data0]</td>
<td class="col-duration">2.56</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_standard_login:test_login_problem.py:18 Username is problem_user
INFO test_standard_login:test_login_problem.py:20 Password is secret_sauce
INFO test_standard_login:test_login_problem.py:25 Login is pass<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">tests/test_login_standard.py::TestLogin::test_standard_login[get_data0]</td>
<td class="col-duration">2.10</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_standard_login:test_login_standard.py:18 Username is standard_user
INFO test_standard_login:test_login_standard.py:20 Password is secret_sauce
INFO test_standard_login:test_login_standard.py:25 Login is pass<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">tests/test_order_name_standard.py::TestOrderStandard::test_order[get_data0]</td>
<td class="col-duration">4.66</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_order:test_order_name_standard.py:32 ##### 1. Login step #####
INFO test_order:test_order_name_standard.py:35 Username is standard_user
INFO test_order:test_order_name_standard.py:37 Password is secret_sauce
INFO test_order:test_order_name_standard.py:42 Login is pass
INFO test_order:test_order_name_standard.py:45 ##### 2. Order step #####
INFO test_order:test_order_name_standard.py:65 Items name are ordered correctly A-Z order
INFO test_order:test_order_name_standard.py:72 Items name are ordered correctly Z-A order
INFO test_order:test_order_name_standard.py:79 Items name are ordered correctly Low to High
INFO test_order:test_order_name_standard.py:86 Items name are ordered correctly High to Low<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">tests/test_price_performance.py::TestPrice::test_price[get_data0]</td>
<td class="col-duration">39.38</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_price:test_price_performance.py:24 ##### 1. Login step #####
INFO test_price:test_price_performance.py:27 Username is performance_glitch_user
INFO test_price:test_price_performance.py:29 Password is secret_sauce
INFO test_price:test_price_performance.py:34 Login is pass
INFO test_price:test_price_performance.py:37 ##### 2. Price step from items page #####
INFO test_price:test_price_performance.py:39 Calculate total price
INFO test_price:test_price_performance.py:43 All elements price is 129.94
INFO test_price:test_price_performance.py:45 ##### 3. Price step from each item page and add to cart #####
INFO test_price:test_price_performance.py:57 Element name = Sauce Labs Backpack and price $29.99
INFO test_price:test_price_performance.py:58 Price from main page 29.99 vs, price on item page $29.99
INFO test_price:test_price_performance.py:57 Element name = Sauce Labs Bike Light and price $9.99
INFO test_price:test_price_performance.py:58 Price from main page 9.99 vs, price on item page $9.99
INFO test_price:test_price_performance.py:57 Element name = Sauce Labs Bolt T-Shirt and price $15.99
INFO test_price:test_price_performance.py:58 Price from main page 15.99 vs, price on item page $15.99
INFO test_price:test_price_performance.py:57 Element name = Sauce Labs Fleece Jacket and price $49.99
INFO test_price:test_price_performance.py:58 Price from main page 49.99 vs, price on item page $49.99
INFO test_price:test_price_performance.py:57 Element name = Sauce Labs Onesie and price $7.99
INFO test_price:test_price_performance.py:58 Price from main page 7.99 vs, price on item page $7.99
INFO test_price:test_price_performance.py:57 Element name = Test.allTheThings() T-Shirt (Red) and price $15.99
INFO test_price:test_price_performance.py:58 Price from main page 15.99 vs, price on item page $15.99
INFO test_price:test_price_performance.py:75 Price sum 129.94 == sum_list price 129.94<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">tests/test_price_standard.py::TestPrice::test_price[get_data0]</td>
<td class="col-duration">4.28</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> -------------------------------Captured log call-------------------------------- <br/>INFO test_price:test_price_standard.py:24 ##### 1. Login step #####
INFO test_price:test_price_standard.py:27 Username is standard_user
INFO test_price:test_price_standard.py:29 Password is secret_sauce
INFO test_price:test_price_standard.py:34 Login is pass
INFO test_price:test_price_standard.py:37 ##### 2. Price step from items page #####
INFO test_price:test_price_standard.py:39 Calculate total price
INFO test_price:test_price_standard.py:43 All elements price is 129.94
INFO test_price:test_price_standard.py:45 ##### 3. Price step from each item page and add to cart #####
INFO test_price:test_price_standard.py:57 Element name = Sauce Labs Backpack and price $29.99
INFO test_price:test_price_standard.py:58 Price from main page 29.99 vs, price on item page $29.99
INFO test_price:test_price_standard.py:57 Element name = Sauce Labs Bike Light and price $9.99
INFO test_price:test_price_standard.py:58 Price from main page 9.99 vs, price on item page $9.99
INFO test_price:test_price_standard.py:57 Element name = Sauce Labs Bolt T-Shirt and price $15.99
INFO test_price:test_price_standard.py:58 Price from main page 15.99 vs, price on item page $15.99
INFO test_price:test_price_standard.py:57 Element name = Sauce Labs Fleece Jacket and price $49.99
INFO test_price:test_price_standard.py:58 Price from main page 49.99 vs, price on item page $49.99
INFO test_price:test_price_standard.py:57 Element name = Sauce Labs Onesie and price $7.99
INFO test_price:test_price_standard.py:58 Price from main page 7.99 vs, price on item page $7.99
INFO test_price:test_price_standard.py:57 Element name = Test.allTheThings() T-Shirt (Red) and price $15.99
INFO test_price:test_price_standard.py:58 Price from main page 15.99 vs, price on item page $15.99
INFO test_price:test_price_standard.py:75 Price sum 129.94 == sum_list price 129.94<br/></div></td></tr></tbody></table></body></html>