Andrew Lite Suresh Rajan
Automation Testing
Assignment III
Submitted to: Alexandre Gorelenko
Due Date: 9th April, 2024
Task 1:
Creating an account in sauce labs
Task 2:
Selected version 122 of chrome browser:
Selected resolution 1440 X 900:
Selected os version Windows 11:
Clicking on Start test to test the website:
Test Results:
Have taken screenshots while doing the test
Test 1: Tried to login using invalid credentials
Output : thrown error
Test 2: Tried adding items to see if they are added to the cart correctly:
Output: Items are being added to the shopping cart as expected
Logs:
logs.json
[{"screenshot": 0, "suggestion_values": [], "start_time": 1712110184.218,
"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":
"ebe5b6d5646d02c205d1b11dcc48b663", "capabilities": {"goog:chromeOptions":
{"debuggerAddress": "localhost:49818"}, "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_dir5184_6612357"}, "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": 1.687000036239624, "path": "/session", "hide_from_ui": false, "between_commands":
null, "visual_command": false, "HTTPStatus": 200, "suggestion": null, "request_id": "5a8a59",
"in_video_timeline": 0.5, "method": "POST", "statusCode": 0}, {"screenshot": 1,
"suggestion_values": [], "start_time": 1712110186.93, "request": {"url":
"https://www.saucedemo.com/"}, "result": null, "duration": 0.39299988746643066, "path": "url",
"hide_from_ui": false, "between_commands": 1.0250000953674316, "visual_command": false,
"HTTPStatus": 200, "suggestion": null, "request_id": "dc929b", "in_video_timeline": 3.0, "method":
"POST", "statusCode": 0}, {"screenshot": 2, "suggestion_values": [], "start_time": 1712110206.648,
"request": null, "result": "", "duration": 0.0, "path": "screenshot", "hide_from_ui": false,
"between_commands": 19.325000047683716, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "22e32b", "in_video_timeline": 22.25, "method": "GET"},
{"screenshot": 3, "suggestion_values": [], "start_time": 1712110226.429, "request": null, "result": "",
"duration": 0.0, "path": "screenshot", "hide_from_ui": false, "between_commands":
19.780999898910522, "visual_command": false, "HTTPStatus": 200, "suggestion": null,
"request_id": "d39e19", "in_video_timeline": 42.25, "method": "GET"}, {"screenshot": 4,
"suggestion_values": [], "start_time": 1712110234.819, "request": null, "result": "", "duration": 0.0,
"path": "screenshot", "hide_from_ui": false, "between_commands": 8.390000104904175,
"visual_command": false, "HTTPStatus": 200, "suggestion": null, "request_id": "b5fb3f",
"in_video_timeline": 50.5, "method": "GET"}, {"screenshot": 5, "suggestion_values": [], "start_time":
1712110271.429, "request": null, "result": "", "duration": 0.0, "path": "screenshot", "hide_from_ui":
false, "between_commands": 36.609999895095825, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "4c0ab1", "in_video_timeline": 87.25, "method": "GET"},
{"screenshot": 6, "suggestion_values": [], "start_time": 1712110276.71, "request": null, "result": "",
"duration": 0.0, "path": "screenshot", "hide_from_ui": false, "between_commands":
5.281000137329102, "visual_command": false, "HTTPStatus": 200, "suggestion": null, "request_id":
"703661", "in_video_timeline": 92.5, "method": "GET"}, {"screenshot": 7, "suggestion_values": [],
"start_time": 1712110281.273, "request": null, "result": "", "duration": 0.0, "path": "screenshot",
"hide_from_ui": false, "between_commands": 4.562999963760376, "visual_command": false,
"HTTPStatus": 200, "suggestion": null, "request_id": "abcb52", "in_video_timeline": 97.0, "method":
"GET"}, {"screenshot": 8, "suggestion_values": [], "start_time": 1712110323.82, "request": null,
"result": "", "duration": 0.016000032424926758, "path": "screenshot", "hide_from_ui": false,
"between_commands": 42.54699993133545, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "03ccaf", "in_video_timeline": 139.5, "method": "GET"},
{"screenshot": 9, "suggestion_values": [], "start_time": 1712110334.585, "request": null, "result": "",
"duration": 0.016000032424926758, "path": "screenshot", "hide_from_ui": false,
"between_commands": 10.749000072479248, "visual_command": false, "HTTPStatus": 200,
"suggestion": null, "request_id": "52b110", "in_video_timeline": 150.25, "method": "GET"},
{"screenshot": 10, "suggestion_values": [], "start_time": 1712110348.242, "request": null, "result":
"", "duration": 0.0, "path": "screenshot", "hide_from_ui": false, "between_commands":
13.641000032424927, "visual_command": false, "HTTPStatus": 200, "suggestion": null,
"request_id": "cad6ab", "in_video_timeline": 164.0, "method": "GET"}, {"screenshot": 11,
"suggestion_values": [], "start_time": 1712110352.485, "request": null, "result": "", "duration":
0.003000020980834961, "path": "screenshot", "hide_from_ui": false, "between_commands":
4.242999792098999, "visual_command": false, "HTTPStatus": 200, "suggestion": null, "request_id":
"b40c14", "in_video_timeline": 168.25, "method": "GET"}]
Task 5:
Testing different VM configuration:
Website being tested: https://demoqa.com/automation-practice-form
Testing in Firefox version 122
Resolution: 1440 X 900
Windows version 10:
Task 6: Performing Test:
Directed to the mentioned website:
Tried to test by filling a form and see if the form is getting submitted:
Able to submit the form successfully:
Logs:
log.json
[{"screenshot": 0, "suggestion_values": [], "start_time": 1712112690.743, "request":
{"capabilities": {"alwaysMatch": {"browserName": "firefox"}, "firstMatch": [{}]}}, "result":
{"sessionId": "7bea41292e5c49f4a02ae2d3cb1aa85b", "capabilities": {}}, "duration": 0.0,
"path": "/session", "hide_from_ui": false, "between_commands": null, "visual_command":
false, "HTTPStatus": 200, "suggestion": null, "request_id": "688a56", "in_video_timeline": 4.75,
"method": "POST", "statusCode": 0}, {"screenshot": 1, "suggestion_values": [], "start_time":
1712112690.978, "request": {"url": "https://demoqa.com/automation-practice-form"},
"result": {"sessionId": "7bea41292e5c49f4a02ae2d3cb1aa85b", "capabilities": {}}, "duration":
0.0, "path": "url", "hide_from_ui": false, "between_commands": 0.2349998950958252,
"visual_command": false, "HTTPStatus": 200, "suggestion": null, "request_id": "5fc909",
"in_video_timeline": 5.0, "method": "POST", "statusCode": 0}, {"screenshot": 2,
"suggestion_values": [], "start_time": 1712112700.277, "request": null, "result": "", "duration":
0.0, "path": "screenshot", "hide_from_ui": false, "between_commands": 9.299000024795532,
"visual_command": false, "HTTPStatus": 200, "suggestion": null, "request_id": "f189b7",
"in_video_timeline": 14.25, "method": "GET"}, {"screenshot": 3, "suggestion_values": [],
"start_time": 1712112790.62, "request": null, "result": "", "duration": 0.0, "path": "screenshot",
"hide_from_ui": false, "between_commands": 90.34299993515015, "visual_command": false,
"HTTPStatus": 200, "suggestion": null, "request_id": "68dd10", "in_video_timeline": 104.5,
"method": "GET"}, {"screenshot": 4, "suggestion_values": [], "start_time": 1712112801.518,
"request": null, "result": "", "duration": 0.015000104904174805, "path": "screenshot",
"hide_from_ui": false, "between_commands": 10.898000001907349, "visual_command": false,
"HTTPStatus": 200, "suggestion": null, "request_id": "2d3ca4", "in_video_timeline": 115.5,
"method": "GET"}]