Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

Deepa Sree Kothandan Rajan

Automation Testing

Asssignment III

Submitted to: Alexandre Gorelenko

Due Date: 9th April, 2024


Task 1: Creating an account in sauce labs
Task 2:

Navigated to cross browser:

Selected Chrome version 122 and Resolution 1440 X 900:


Selected OS Version 11:
Task 3:

Started performing a test


Tried to sign in using invalid credentials:

Output: Getting expected result with error message


Test 2: Navigated to inventory website to test if able to check if the add to cart button is
working

Output: Able to click the button and same has been reflected in the cart icon in the top right
corner
Task 4:

Screenshots:
Logs:

[{"screenshot": 0, "suggestion_values": [], "start_time": 1712541652.26, "request":


{"capabilities": {"alwaysMatch": {"goog:chromeOptions": {"binary": "D:\\Program
Files\\Chrome 122\\chrome.exe", "prefs": {"browser": {"show_update_promotion_info_bar":
false}}, "args": ["start-maximized", "disable-infobars", "ignore-gpu-blacklist", "test-type",
"disable-gpu"]}, "browserName": "chrome"}, "firstMatch": [{}]}}, "result": {"sessionId":
"7027b6c93dfd5325ba245066b542f38c", "capabilities": {"goog:chromeOptions":
{"debuggerAddress": "localhost:49798"}, "browserVersion": "122.0.6261.70",
"webauthn:extension:minPinLength": true, "timeouts": {"pageLoad": 300000, "implicit": 0,
"script": 30000}, "strictFileInteractability": false, "acceptInsecureCerts": false,
"webauthn:extension:prf": true, "networkConnectionEnabled": false, "fedcm:accounts": true,
"chrome": {"chromedriverVersion": "122.0.6261.69
(81bc525b6a36d91ed7fe98a4b53c6f53c79adbb2-refs/branch-heads/6261_57@{#3})",
"userDataDir": "C:\\Windows\\SystemTemp\\scoped_dir6256_73524796"}, "browserName":
"chrome", "setWindowRect": true, "proxy": {}, "webauthn:virtualAuthenticators": true,
"pageLoadStrategy": "normal", "webauthn:extension:largeBlob": true, "platformName":
"windows", "unhandledPromptBehavior": "dismiss and notify", "webauthn:extension:credBlob":
true}}, "duration": 2.5510001182556152, "path": "/session", "hide_from_ui": false,
"between_commands": null, "visual_command": false, "HTTPStatus": 200, "suggestion": null,
"request_id": "67720c", "in_video_timeline": 0.25, "method": "POST", "statusCode": 0},
{"screenshot": 1, "suggestion_values": [], "start_time": 1712541656.587, "request": {"url":
"https://www.saucedemo.com/"}, "result": null, "duration": 0.5950000286102295, "path": "url",
"hide_from_ui": false, "between_commands": 1.7759997844696045, "visual_command": false,
"HTTPStatus": 200, "suggestion": null, "request_id": "b1169e", "in_video_timeline": 4.5,
"method": "POST", "statusCode": 0}, {"screenshot": 2, "suggestion_values": [], "start_time":
1712541667.573, "request": null, "result": "", "duration": 0.0, "path": "screenshot",
"hide_from_ui": false, "between_commands": 10.391000032424927, "visual_command": false,
"HTTPStatus": 200, "suggestion": null, "request_id": "139dd2", "in_video_timeline": 15.25,
"method": "GET"}, {"screenshot": 3, "suggestion_values": [], "start_time": 1712541691.713,
"request": null, "result": "", "duration": 0.0, "path": "screenshot", "hide_from_ui": false,
"between_commands": 24.140000104904175, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "16abdc", "in_video_timeline": 39.25, "method": "GET"},
{"screenshot": 4, "suggestion_values": [], "start_time": 1712541698.855, "request": null,
"result": "", "duration": 0.0, "path": "screenshot", "hide_from_ui": false, "between_commands":
7.141999959945679, "visual_command": false, "HTTPStatus": 200, "suggestion": null,
"request_id": "ede32c", "in_video_timeline": 46.5, "method": "GET"}, {"screenshot": 5,
"suggestion_values": [], "start_time": 1712541713.604, "request": null, "result": "", "duration":
0.0, "path": "screenshot", "hide_from_ui": false, "between_commands": 14.749000072479248,
"visual_command": false, "HTTPStatus": 200, "suggestion": null, "request_id": "7a383e",
"in_video_timeline": 61.25, "method": "GET"}, {"screenshot": 6, "suggestion_values": [],
"start_time": 1712541738.057, "request": null, "result": "", "duration": 0.0, "path": "screenshot",
"hide_from_ui": false, "between_commands": 24.45299983024597, "visual_command": false,
"HTTPStatus": 200, "suggestion": null, "request_id": "2ec938", "in_video_timeline": 85.75,
"method": "GET"}, {"screenshot": 7, "suggestion_values": [], "start_time": 1712541759.699,
"request": null, "result": "", "duration": 0.0, "path": "screenshot", "hide_from_ui": false,
"between_commands": 21.64199995994568, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "7b8dd3", "in_video_timeline": 107.25, "method": "GET"},
{"screenshot": 8, "suggestion_values": [], "start_time": 1712541780.135, "request": null,
"result": "", "duration": 0.0, "path": "screenshot", "hide_from_ui": false, "between_commands":
20.436000108718872, "visual_command": false, "HTTPStatus": 200, "suggestion": null,
"request_id": "312996", "in_video_timeline": 127.75, "method": "GET"}, {"screenshot": 9,
"suggestion_values": [], "start_time": 1712541802.964, "request": null, "result": "", "duration":
0.0, "path": "/session/bdae5cb97b734679b9f7b49ac2bb9307", "hide_from_ui": false,
"between_commands": 22.828999996185303, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "3fd526", "in_video_timeline": 150.5, "method": "DELETE",
"statusCode": 0}]
Task 5:

Performing another test with a different VM configuration and a different website:

Selected Edge version 122 and Resolution 1400 X 1050:

Selected OS Version 10:


Started testing amazon website
Task 6:

Test started:
Trying to test the search feature:
Output: Expected search result being retrieved

Testing to sort the price from low to high:


Output: products being shown from low price to high price as expected:
Task 7:
Logs of the test:

[{"screenshot": 0, "suggestion_values": [], "start_time": 1712542720.161, "request":


{"capabilities": {"alwaysMatch": {"browserName": "MicrosoftEdge", "ms:edgeOptions":
{"binary": "D:\\Program Files\\Edge 122\\msedge.exe", "args": ["start-maximized", "disable-
infobars", "ignore-gpu-blacklist", "test-type", "disable-gpu"]}}, "firstMatch": [{}]}}, "result":
{"sessionId": "64221334a68e712402d8ea957d1d4bbb", "capabilities":
{"webauthn:virtualAuthenticators": true, "networkConnectionEnabled": false,
"selenium:webdriver.remote.quietExceptions": false, "webauthn:extension:credBlob": true,
"se:bidiEnabled": false, "strictFileInteractability": false, "acceptInsecureCerts": false,
"se:cdpEnabled": false, "webauthn:extension:prf": true, "platformName": "Windows 10",
"unhandledPromptBehavior": "dismiss and notify", "fedcm:accounts": true, "browserName":
"MicrosoftEdge", "webauthn:extension:largeBlob": true, "ms:edgeOptions":
{"debuggerAddress": "localhost:49811"}, "browserVersion": "122.0.2365.52",
"webauthn:extension:minPinLength": true, "timeouts": {"pageLoad": 300000, "implicit": 0,
"script": 30000}, "setWindowRect": true, "pageLoadStrategy": "normal", "msedge":
{"msedgedriverVersion": "122.0.2365.52 (dcf246d1e496247cf561ee2a2f8bcc2bf6292d0c)",
"userDataDir": "C:\\Program Files\\scoped_dir4868_1903406762"}, "proxy": {}}}, "duration":
3.504999876022339, "path": "/session", "hide_from_ui": false, "between_commands": null,
"visual_command": false, "HTTPStatus": 200, "suggestion": null, "request_id": "15caf4",
"in_video_timeline": 3.5, "method": "POST", "statusCode": 0}, {"screenshot": 1,
"suggestion_values": [], "start_time": 1712542724.994, "request": {"url":
"https://www.amazon.ca/"}, "result": null, "duration": 0.3600001335144043, "path": "url",
"hide_from_ui": false, "between_commands": 1.3280000686645508, "visual_command": false,
"HTTPStatus": 200, "suggestion": null, "request_id": "e7c9b6", "in_video_timeline": 8.0,
"method": "POST", "statusCode": 0}, {"screenshot": 2, "suggestion_values": [], "start_time":
1712542747.136, "request": null, "result": "", "duration": 0.0, "path": "screenshot",
"hide_from_ui": false, "between_commands": 21.781999826431274, "visual_command": false,
"HTTPStatus": 200, "suggestion": null, "request_id": "0e6e67", "in_video_timeline": 29.75,
"method": "GET"}, {"screenshot": 3, "suggestion_values": [], "start_time": 1712542758.776,
"request": null, "result": "", "duration": 0.0, "path": "screenshot", "hide_from_ui": false,
"between_commands": 11.640000104904175, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "c129be", "in_video_timeline": 41.5, "method": "GET"},
{"screenshot": 4, "suggestion_values": [], "start_time": 1712542774.051, "request": null,
"result": "", "duration": 0.0009999275207519531, "path": "screenshot", "hide_from_ui": false,
"between_commands": 15.275000095367432, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "daf323", "in_video_timeline": 56.75, "method": "GET"},
{"screenshot": 5, "suggestion_values": [], "start_time": 1712542788.298, "request": null,
"result": "", "duration": 0.0009999275207519531, "path": "screenshot", "hide_from_ui": false,
"between_commands": 14.246000051498413, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "a2fb8f", "in_video_timeline": 71.0, "method": "GET"},
{"screenshot": 6, "suggestion_values": [], "start_time": 1712542803.983, "request": null,
"result": "", "duration": 0.0019998550415039062, "path": "screenshot", "hide_from_ui": false,
"between_commands": 15.684000015258789, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "f6ad2b", "in_video_timeline": 86.75, "method": "GET"},
{"screenshot": 7, "suggestion_values": [], "start_time": 1712542819.463, "request": null,
"result": "", "duration": 0.0, "path": "screenshot", "hide_from_ui": false,
"between_commands": 15.478000164031982, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "6ac417", "in_video_timeline": 102.25, "method": "GET"},
{"screenshot": 8, "suggestion_values": [], "start_time": 1712542835.097, "request": null,
"result": "", "duration": 0.002000093460083008, "path": "screenshot", "hide_from_ui": false,
"between_commands": 15.633999824523926, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "29fde7", "in_video_timeline": 117.75, "method": "GET"},
{"screenshot": 9, "suggestion_values": [], "start_time": 1712542844.985, "request": null,
"result": "", "duration": 0.0, "path": "/session/8319f91698c64ddfbe80afaf76680cf1",
"hide_from_ui": false, "between_commands": 9.885999917984009, "visual_command": false,
"HTTPStatus": 200, "suggestion": null, "request_id": "a86972", "in_video_timeline": 127.75,
"method": "DELETE", "statusCode": 0}]

You might also like