-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from AbuBakkar32/abu-bakkar
Abu bakkar
- Loading branch information
Showing
30 changed files
with
308 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
"passes": 1, | ||
"pending": 0, | ||
"failures": 0, | ||
"start": "2024-07-12T16:01:14.001Z", | ||
"end": "2024-07-12T16:04:02.878Z", | ||
"duration": 168877, | ||
"start": "2024-07-14T04:16:25.706Z", | ||
"end": "2024-07-14T04:17:02.088Z", | ||
"duration": 36382, | ||
"testsRegistered": 1, | ||
"passPercent": 100, | ||
"pendingPercent": 0, | ||
|
@@ -18,7 +18,7 @@ | |
}, | ||
"results": [ | ||
{ | ||
"uuid": "b5df6c14-2913-4087-a11f-de98f3394307", | ||
"uuid": "fff1f5ab-f8ff-49cc-b131-00bcee1a767a", | ||
"title": "", | ||
"fullFile": "cypress\\e2e\\add_review_on_product.cy.js", | ||
"file": "cypress\\e2e\\add_review_on_product.cy.js", | ||
|
@@ -27,7 +27,7 @@ | |
"tests": [], | ||
"suites": [ | ||
{ | ||
"uuid": "ac6cd77e-71ff-4cc8-9d78-29df9affe268", | ||
"uuid": "c96ca9b3-0c1c-4200-abe1-ebccebfcc0fc", | ||
"title": "Add review on product", | ||
"fullFile": "", | ||
"file": "", | ||
|
@@ -38,7 +38,7 @@ | |
"title": "adds a review and verifies success message", | ||
"fullTitle": "Add review on product adds a review and verifies success message", | ||
"timedOut": null, | ||
"duration": 161576, | ||
"duration": 26437, | ||
"state": "passed", | ||
"speed": "slow", | ||
"pass": true, | ||
|
@@ -47,20 +47,20 @@ | |
"context": null, | ||
"code": "cy.visit('http://automationexercise.com');\n// Click on 'Products' button\ncy.get('a[href=\"/products\"]').click();\n// Verify user is navigated to ALL PRODUCTS page\ncy.contains('All Products').should('be.visible');\n// Select a product (replace with logic to choose a product)\n// ... your logic to select a product ...\n// Click on 'View Product' button\ncy.get('a[href=\"/product_details/1\"]').click(); // Assuming the first product\n// Verify 'Write Your Review' is visible\ncy.contains('Write Your Review').should('be.visible');\n// Enter name, email and review\nconst reviewerName = 'Test User';\nconst reviewerEmail = '[email protected]';\nconst reviewText = 'This is a great product!';\ncy.get('#name').type(reviewerName);\ncy.get('#email').type(reviewerEmail);\ncy.get('#button-review').type(reviewText);\n// Verify success message 'Thank you for your review.'\ncy.get('#review-section div > span').should('contain', 'Thank you for your review.');", | ||
"err": {}, | ||
"uuid": "770b6011-d65b-4fc3-bf2c-2da56ac3e269", | ||
"parentUUID": "ac6cd77e-71ff-4cc8-9d78-29df9affe268", | ||
"uuid": "652d6398-8bc6-46d9-935d-e97cc5e8b9de", | ||
"parentUUID": "c96ca9b3-0c1c-4200-abe1-ebccebfcc0fc", | ||
"isHook": false, | ||
"skipped": false | ||
} | ||
], | ||
"suites": [], | ||
"passes": [ | ||
"770b6011-d65b-4fc3-bf2c-2da56ac3e269" | ||
"652d6398-8bc6-46d9-935d-e97cc5e8b9de" | ||
], | ||
"failures": [], | ||
"pending": [], | ||
"skipped": [], | ||
"duration": 161576, | ||
"duration": 26437, | ||
"root": false, | ||
"rootEmpty": false, | ||
"_timeout": 2000 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,9 @@ | |
"passes": 1, | ||
"pending": 0, | ||
"failures": 0, | ||
"start": "2024-07-12T16:04:57.223Z", | ||
"end": "2024-07-12T16:06:09.010Z", | ||
"duration": 71787, | ||
"start": "2024-07-14T04:17:49.041Z", | ||
"end": "2024-07-14T04:18:23.354Z", | ||
"duration": 34313, | ||
"testsRegistered": 1, | ||
"passPercent": 100, | ||
"pendingPercent": 0, | ||
|
@@ -18,7 +18,7 @@ | |
}, | ||
"results": [ | ||
{ | ||
"uuid": "9a4dba1a-c616-401b-b03b-f4edc6117aba", | ||
"uuid": "900a9a86-f8a2-454e-87bb-29f3615afbb0", | ||
"title": "", | ||
"fullFile": "cypress\\e2e\\contact_us.cy.js", | ||
"file": "cypress\\e2e\\contact_us.cy.js", | ||
|
@@ -27,7 +27,7 @@ | |
"tests": [], | ||
"suites": [ | ||
{ | ||
"uuid": "9cc097ea-d0cf-4f57-aaee-7ed5ec3699a9", | ||
"uuid": "21d4e7e1-9d58-4a54-a8c3-310b7d0a5e9a", | ||
"title": "Contact Us Form", | ||
"fullFile": "", | ||
"file": "", | ||
|
@@ -38,7 +38,7 @@ | |
"title": "Contact Us Form validation checking....", | ||
"fullTitle": "Contact Us Form Contact Us Form validation checking....", | ||
"timedOut": null, | ||
"duration": 64633, | ||
"duration": 24469, | ||
"state": "passed", | ||
"speed": "slow", | ||
"pass": true, | ||
|
@@ -47,20 +47,20 @@ | |
"context": null, | ||
"code": "// Step 1: Launch browser\n// Cypress automatically launches the browser\n// Step 2: Navigate to url 'http://automationexercise.com'\ncy.visit('http://automationexercise.com');\n// Step 3: Verify that home page is visible successfully\ncy.url().should('include', 'automationexercise');\n// Step 4: Click on 'Contact Us' button\ncy.contains('Contact us').click();\n// Step 5: Verify 'GET IN TOUCH' is visible\ncy.get('#contact-page > div.row > div.col-sm-8 > div > h2').should('contain', 'Get In Touch');\n// Step 6: Enter name, email, subject and message\ncy.get('[data-qa=\"name\"]').type('Test User');\ncy.get('[data-qa=\"email\"]').type('[email protected]');\ncy.get('[data-qa=\"subject\"]').type('Test Subject');\ncy.get('[data-qa=\"message\"]').type('Test Message');\n// Step 7: Upload file\nconst fileName = './reports/unittest.pdf';\ncy.get('input[type=file]').selectFile(fileName);\n// Step 8: Click 'Submit' button\ncy.get('[data-qa=\"submit-button\"]').click();\n// Step 9: Click OK button\ncy.on('window:confirm', () => true);\n// Step 10: Verify success message 'Success! Your details have been submitted successfully.' is visible\ncy.get('.status ').should('contain', 'Success! Your details have been submitted successfully.');\n// Step 11: Click 'Home' button and verify that landed to home page successfully\ncy.get('#form-section > a > span > i').click();\ncy.url().should('include', 'automationexercise');", | ||
"err": {}, | ||
"uuid": "66080538-ac14-4380-8384-c39df826bcd0", | ||
"parentUUID": "9cc097ea-d0cf-4f57-aaee-7ed5ec3699a9", | ||
"uuid": "f3d7f4c9-90d1-46e7-94ca-f1ffae54d99a", | ||
"parentUUID": "21d4e7e1-9d58-4a54-a8c3-310b7d0a5e9a", | ||
"isHook": false, | ||
"skipped": false | ||
} | ||
], | ||
"suites": [], | ||
"passes": [ | ||
"66080538-ac14-4380-8384-c39df826bcd0" | ||
"f3d7f4c9-90d1-46e7-94ca-f1ffae54d99a" | ||
], | ||
"failures": [], | ||
"pending": [], | ||
"skipped": [], | ||
"duration": 64633, | ||
"duration": 24469, | ||
"root": false, | ||
"rootEmpty": false, | ||
"_timeout": 2000 | ||
|
Oops, something went wrong.