From bfa46f93ab3fd7a9351225cc60790d7d4f1bce59 Mon Sep 17 00:00:00 2001 From: ABS RAKIB Date: Fri, 12 Jul 2024 22:18:02 +0600 Subject: [PATCH] API Call --- cypress/reports/.jsons/mochawesome_010.json | 115 ++++++++++++++++++ cypress/reports/.jsons/mochawesome_011.json | 111 +++++++++++++++++ ...sults-0ace8d38ebb0257e6070712470d9b2d4.xml | 9 ++ ...sults-2374f77dd758e4c571bde27ad3fd68d9.xml | 11 ++ ...sults-41cc8c0ce03859dd2b306d7f87efaaf9.xml | 9 ++ ...sults-50626dbcd903e5d03660fd2a69d60e22.xml | 9 ++ ...sults-7593f31e002ada3a14c7f4e533de9caa.xml | 11 ++ ...sults-7b416334a67f3024a482f2ea9705d2c7.xml | 9 ++ ...sults-84ddee2a8ffcadff954e5ab4c112b3da.xml | 15 +++ ...sults-a11161ed1c822359cea0535e68f0a129.xml | 9 ++ ...sults-a70cba8761d2e5f4f8107426e01bbe20.xml | 15 +++ ...sults-c1c6050f9b4c118ac33be320d7831bcc.xml | 11 ++ ...sults-eb545fec76ac4ede24e4070c4d26449a.xml | 9 ++ ...sults-f91de266c88c87f92c7ff91d02fddebb.xml | 9 ++ 14 files changed, 352 insertions(+) create mode 100644 cypress/reports/.jsons/mochawesome_010.json create mode 100644 cypress/reports/.jsons/mochawesome_011.json create mode 100644 cypress/reports/junit/results-0ace8d38ebb0257e6070712470d9b2d4.xml create mode 100644 cypress/reports/junit/results-2374f77dd758e4c571bde27ad3fd68d9.xml create mode 100644 cypress/reports/junit/results-41cc8c0ce03859dd2b306d7f87efaaf9.xml create mode 100644 cypress/reports/junit/results-50626dbcd903e5d03660fd2a69d60e22.xml create mode 100644 cypress/reports/junit/results-7593f31e002ada3a14c7f4e533de9caa.xml create mode 100644 cypress/reports/junit/results-7b416334a67f3024a482f2ea9705d2c7.xml create mode 100644 cypress/reports/junit/results-84ddee2a8ffcadff954e5ab4c112b3da.xml create mode 100644 cypress/reports/junit/results-a11161ed1c822359cea0535e68f0a129.xml create mode 100644 cypress/reports/junit/results-a70cba8761d2e5f4f8107426e01bbe20.xml create mode 100644 cypress/reports/junit/results-c1c6050f9b4c118ac33be320d7831bcc.xml create mode 100644 cypress/reports/junit/results-eb545fec76ac4ede24e4070c4d26449a.xml create mode 100644 cypress/reports/junit/results-f91de266c88c87f92c7ff91d02fddebb.xml diff --git a/cypress/reports/.jsons/mochawesome_010.json b/cypress/reports/.jsons/mochawesome_010.json new file mode 100644 index 0000000..ecf1b0a --- /dev/null +++ b/cypress/reports/.jsons/mochawesome_010.json @@ -0,0 +1,115 @@ +{ + "stats": { + "suites": 1, + "tests": 1, + "passes": 0, + "pending": 0, + "failures": 1, + "start": "2024-07-12T16:13:37.167Z", + "end": "2024-07-12T16:14:40.968Z", + "duration": 63801, + "testsRegistered": 1, + "passPercent": 0, + "pendingPercent": 0, + "other": 0, + "hasOther": false, + "skipped": 0, + "hasSkipped": false + }, + "results": [ + { + "uuid": "479472e7-4585-43cd-b782-232ec9509d80", + "title": "", + "fullFile": "cypress\\e2e\\place_order_while_checkout.cy.js", + "file": "cypress\\e2e\\place_order_while_checkout.cy.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "93f3a68c-53d2-43d5-8428-7eb0e9422446", + "title": "Place Order: Register while Checkout", + "fullFile": "", + "file": "", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "adds products into the cart, register, and shipping", + "fullTitle": "Place Order: Register while Checkout adds products into the cart, register, and shipping", + "timedOut": null, + "duration": 56070, + "state": "failed", + "speed": null, + "pass": false, + "fail": true, + "pending": false, + "context": "{\n \"title\": \"cypress-mochawesome-reporter-screenshots\",\n \"value\": [\n [\n \"\\\\place_order_while_checkout.cy.js\\\\Place Order Register while Checkout -- adds products into the cart, register, and shipping (failed) (1).png\"\n ]\n ]\n}", + "code": "cy.visit('http://automationexercise.com');\n// Verify home page is visible\ncy.get('.logo a>img').should('be.visible');\n// add product\ncy.get('.product-image-wrapper .choose > ul >li >a').first().click();\n// Verify product detail is opened\ncy.get('.product-information').should('be.visible');\n// Increase quantity to 4\ncy.get('#quantity').clear().type('4');\n// Click 'Add to cart' button\ncy.get('.cart').click();\n// confirm the product\ncy.get('#cartModal > div > div > div.modal-footer > button').click();\n// Click 'View Cart' button\ncy.get('li [href=\"/view_cart\"]').click();\n// Verify cart page is displayed\ncy.get('.cart_info').should('be.visible');\n// Click 'Proceed To Checkout' button\ncy.contains('Proceed To Checkout').click();\n// Click 'Register / Login' button\ncy.get('#checkoutModal > div > div > div.modal-body > p:nth-child(2) > a').click();\n// Fill all details in Signup and create account\ncy.contains('New User Signup!');\ncy.get('[data-qa=\"signup-name\"]').type('Amir Hossain');\ncy.get('[data-qa=\"signup-email\"]').type('amir.swe@gmail.com');\ncy.get('[data-qa=\"signup-button\"]').click();\n// Fill in account details\n// Replace '#input' with the actual selectors for each input field\ncy.get('#id_gender1').type('Mr.');\ncy.get('[data-qa=\"password\"]').type('abubakkar90');\ncy.get('[data-qa=\"days\"]').select('1');\ncy.get('[data-qa=\"months\"]').select('January');\ncy.get('[data-qa=\"years\"]').select('1998');\ncy.get('#newsletter').check();\ncy.get('#optin').check();\ncy.get('[data-qa=\"first_name\"]').type('Amir');\ncy.get('[data-qa=\"last_name\"]').type('Hossain');\ncy.get('[data-qa=\"company\"]').type('Test Company');\ncy.get('[data-qa=\"address\"]').type('123 Test St');\ncy.get('[data-qa=\"address2\"]').type('Apt 4B');\ncy.get('#country').select('Canada');\ncy.get('[data-qa=\"state\"]').type('NY');\ncy.get('[data-qa=\"city\"]').type('New York');\ncy.get('[data-qa=\"zipcode\"]').type('10001');\ncy.get('[data-qa=\"mobile_number\"]').type('1234567890');\ncy.get('[data-qa=\"create-account\"]').click();\ncy.get('[data-qa=\"account-created\"]').contains('Account Created!');\ncy.get('[data-qa=\"continue-button\"]').click();\n// Verify ' Logged in as username' at top\ncy.contains('Logged in as Amir Hossain');\n// Click 'Cart' button again\ncy.get('li [href=\"/view_cart\"]').click();\n// Click 'Proceed To Checkout' button again\ncy.contains('Proceed To Checkout').click();\n// Enter description in comment text area and click 'Place Order'\ncy.get('#ordermsg').type('Test order with registration');\ncy.contains('Place Order').click();\n// Click 'Pay and Confirm Order' button\ncy.get('[data-qa=\"name-on-card\"]').type('Amir Hossain');\ncy.get('[data-qa=\"card-number\"]').type('5655-1814-0058-1255');\ncy.get('[data-qa=\"cvc\"]').type('588');\ncy.get('[data-qa=\"expiry-month\"]').type('08/33');\ncy.get('[data-qa=\"expiry-year\"]').type('2033');\ncy.get('[data-qa = \"pay-button\"]').click();\n// Verify success message 'Your order has been placed successfully!'\ncy.contains('Congratulations! Your order has been confirmed!').should('be.visible');\n// Click 'Delete Account' button\ncy.get('#header > div > div > div > div.col-sm-8 > div > ul > li:nth-child(5) > a').click();\n// Verify 'ACCOUNT DELETED!' and click 'Continue' button\ncy.get('[data-qa=\"account-deleted\"]').contains('Account Deleted!');\ncy.get('[data-qa=\"continue-button\"]').click();", + "err": { + "message": "AssertionError: Timed out retrying after 4000ms: Expected to find element: `#id_gender1`, but never found it.", + "estack": "AssertionError: Timed out retrying after 4000ms: Expected to find element: `#id_gender1`, but never found it.\n at Context.eval (webpack:///./cypress/e2e/place_order_while_checkout.cy.js:44:11)", + "diff": null + }, + "uuid": "208aa1ae-0708-4e0c-baeb-c308772af6a0", + "parentUUID": "93f3a68c-53d2-43d5-8428-7eb0e9422446", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [], + "failures": [ + "208aa1ae-0708-4e0c-baeb-c308772af6a0" + ], + "pending": [], + "skipped": [], + "duration": 56070, + "root": false, + "rootEmpty": false, + "_timeout": 2000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 2000 + } + ], + "meta": { + "mocha": { + "version": "7.0.1" + }, + "mochawesome": { + "options": { + "quiet": false, + "reportFilename": "mochawesome", + "saveHtml": false, + "saveJson": true, + "consoleReporter": "spec", + "useInlineDiffs": false, + "code": true + }, + "version": "7.1.3" + }, + "marge": { + "options": { + "id": "default", + "charts": true, + "reportPageTitle": "custom-title", + "reportDir": "cypress\\reports\\.jsons", + "embeddedScreenshots": true, + "inlineAssets": true, + "saveAllAttempts": true, + "overwrite": false, + "html": false, + "json": true + }, + "version": "6.2.0" + } + } +} \ No newline at end of file diff --git a/cypress/reports/.jsons/mochawesome_011.json b/cypress/reports/.jsons/mochawesome_011.json new file mode 100644 index 0000000..344fd6c --- /dev/null +++ b/cypress/reports/.jsons/mochawesome_011.json @@ -0,0 +1,111 @@ +{ + "stats": { + "suites": 1, + "tests": 1, + "passes": 1, + "pending": 0, + "failures": 0, + "start": "2024-07-12T16:14:49.081Z", + "end": "2024-07-12T16:15:33.942Z", + "duration": 44861, + "testsRegistered": 1, + "passPercent": 100, + "pendingPercent": 0, + "other": 0, + "hasOther": false, + "skipped": 0, + "hasSkipped": false + }, + "results": [ + { + "uuid": "ba35ac14-48e3-4c08-ad7c-388c3d9b91c2", + "title": "", + "fullFile": "cypress\\e2e\\register_existing_email.cy.js", + "file": "cypress\\e2e\\register_existing_email.cy.js", + "beforeHooks": [], + "afterHooks": [], + "tests": [], + "suites": [ + { + "uuid": "e317150f-296f-4baa-9ba0-36c828977fb8", + "title": "Register User with existing email", + "fullFile": "", + "file": "", + "beforeHooks": [], + "afterHooks": [], + "tests": [ + { + "title": "Register User with existing email", + "fullTitle": "Register User with existing email Register User with existing email", + "timedOut": null, + "duration": 37289, + "state": "passed", + "speed": "slow", + "pass": true, + "fail": false, + "pending": false, + "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 'Signup / Login' button\ncy.contains('Signup / Login').click();\n// Step 5: Verify 'New User Signup!' is visible\ncy.get('#form > div > div > div:nth-child(3) > div > h2').should('contain', 'New User Signup!');\n// Step 6: Enter name and already registered email address\ncy.get('[data-qa=\"signup-name\"]').type('abubakkar');\ncy.get('[data-qa=\"signup-email\"]').type('abu@gmail.com');\n// Step 7: Click 'Signup' button\ncy.get('[data-qa=\"signup-button\"]').click();\n// Step 8: Verify error 'Email Address already exist!' is visible\ncy.get('#form > div > div > div:nth-child(3) > div > form > p').should('contain', 'Email Address already exist!');", + "err": {}, + "uuid": "56d71b4b-01e5-495c-aae2-2a99cda39cdd", + "parentUUID": "e317150f-296f-4baa-9ba0-36c828977fb8", + "isHook": false, + "skipped": false + } + ], + "suites": [], + "passes": [ + "56d71b4b-01e5-495c-aae2-2a99cda39cdd" + ], + "failures": [], + "pending": [], + "skipped": [], + "duration": 37289, + "root": false, + "rootEmpty": false, + "_timeout": 2000 + } + ], + "passes": [], + "failures": [], + "pending": [], + "skipped": [], + "duration": 0, + "root": true, + "rootEmpty": true, + "_timeout": 2000 + } + ], + "meta": { + "mocha": { + "version": "7.0.1" + }, + "mochawesome": { + "options": { + "quiet": false, + "reportFilename": "mochawesome", + "saveHtml": false, + "saveJson": true, + "consoleReporter": "spec", + "useInlineDiffs": false, + "code": true + }, + "version": "7.1.3" + }, + "marge": { + "options": { + "id": "default", + "charts": true, + "reportPageTitle": "custom-title", + "reportDir": "cypress\\reports\\.jsons", + "embeddedScreenshots": true, + "inlineAssets": true, + "saveAllAttempts": true, + "overwrite": false, + "html": false, + "json": true + }, + "version": "6.2.0" + } + } +} \ No newline at end of file diff --git a/cypress/reports/junit/results-0ace8d38ebb0257e6070712470d9b2d4.xml b/cypress/reports/junit/results-0ace8d38ebb0257e6070712470d9b2d4.xml new file mode 100644 index 0000000..cab1e42 --- /dev/null +++ b/cypress/reports/junit/results-0ace8d38ebb0257e6070712470d9b2d4.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-2374f77dd758e4c571bde27ad3fd68d9.xml b/cypress/reports/junit/results-2374f77dd758e4c571bde27ad3fd68d9.xml new file mode 100644 index 0000000..001af15 --- /dev/null +++ b/cypress/reports/junit/results-2374f77dd758e4c571bde27ad3fd68d9.xml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-41cc8c0ce03859dd2b306d7f87efaaf9.xml b/cypress/reports/junit/results-41cc8c0ce03859dd2b306d7f87efaaf9.xml new file mode 100644 index 0000000..8e35e7e --- /dev/null +++ b/cypress/reports/junit/results-41cc8c0ce03859dd2b306d7f87efaaf9.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-50626dbcd903e5d03660fd2a69d60e22.xml b/cypress/reports/junit/results-50626dbcd903e5d03660fd2a69d60e22.xml new file mode 100644 index 0000000..6068e8c --- /dev/null +++ b/cypress/reports/junit/results-50626dbcd903e5d03660fd2a69d60e22.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-7593f31e002ada3a14c7f4e533de9caa.xml b/cypress/reports/junit/results-7593f31e002ada3a14c7f4e533de9caa.xml new file mode 100644 index 0000000..7812fb4 --- /dev/null +++ b/cypress/reports/junit/results-7593f31e002ada3a14c7f4e533de9caa.xml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-7b416334a67f3024a482f2ea9705d2c7.xml b/cypress/reports/junit/results-7b416334a67f3024a482f2ea9705d2c7.xml new file mode 100644 index 0000000..fe02fb8 --- /dev/null +++ b/cypress/reports/junit/results-7b416334a67f3024a482f2ea9705d2c7.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-84ddee2a8ffcadff954e5ab4c112b3da.xml b/cypress/reports/junit/results-84ddee2a8ffcadff954e5ab4c112b3da.xml new file mode 100644 index 0000000..3db9aab --- /dev/null +++ b/cypress/reports/junit/results-84ddee2a8ffcadff954e5ab4c112b3da.xml @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-a11161ed1c822359cea0535e68f0a129.xml b/cypress/reports/junit/results-a11161ed1c822359cea0535e68f0a129.xml new file mode 100644 index 0000000..88ce2cc --- /dev/null +++ b/cypress/reports/junit/results-a11161ed1c822359cea0535e68f0a129.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-a70cba8761d2e5f4f8107426e01bbe20.xml b/cypress/reports/junit/results-a70cba8761d2e5f4f8107426e01bbe20.xml new file mode 100644 index 0000000..ffa2b9d --- /dev/null +++ b/cypress/reports/junit/results-a70cba8761d2e5f4f8107426e01bbe20.xml @@ -0,0 +1,15 @@ + + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-c1c6050f9b4c118ac33be320d7831bcc.xml b/cypress/reports/junit/results-c1c6050f9b4c118ac33be320d7831bcc.xml new file mode 100644 index 0000000..e0737e7 --- /dev/null +++ b/cypress/reports/junit/results-c1c6050f9b4c118ac33be320d7831bcc.xml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-eb545fec76ac4ede24e4070c4d26449a.xml b/cypress/reports/junit/results-eb545fec76ac4ede24e4070c4d26449a.xml new file mode 100644 index 0000000..744f1e4 --- /dev/null +++ b/cypress/reports/junit/results-eb545fec76ac4ede24e4070c4d26449a.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/cypress/reports/junit/results-f91de266c88c87f92c7ff91d02fddebb.xml b/cypress/reports/junit/results-f91de266c88c87f92c7ff91d02fddebb.xml new file mode 100644 index 0000000..a94caa8 --- /dev/null +++ b/cypress/reports/junit/results-f91de266c88c87f92c7ff91d02fddebb.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file