cypress_task 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/cyemial.yaml +98 -0
- package/Daily_Tracker.xlsx +0 -0
- package/Mannual_testcases.xlsx +0 -0
- package/clean_mochawesome.js +26 -0
- package/cleanupOutput.js +16 -0
- package/cleanupReports.js +15 -0
- package/cypress/e2e/Cart_Testcases/07_verify_Adding_single_item_to_cart.cy.js +40 -0
- package/cypress/e2e/Cart_Testcases/08_verify_removing_item_from_the_cart.cy.js +55 -0
- package/cypress/e2e/Cart_Testcases/09_verify_updating_of_cart_after_adding_multiple_item.cy.js +75 -0
- package/cypress/e2e/Checkout_Testcases/04_verify_complete_successful_purchase_of_single_item.cy.js +83 -0
- package/cypress/e2e/Checkout_Testcases/05_verify_checkout_with_missing_firstname_fails.cy.js +78 -0
- package/cypress/e2e/Checkout_Testcases/06_verify_user_can_cancel_checkout_and redirected_to_cart.cy.js +79 -0
- package/cypress/e2e/Login_Testcases/01_Verify_Valid_Login.cy.js +30 -0
- package/cypress/e2e/Login_Testcases/02_Verify_Invalid_Login_by_wrong_password.cy.js +29 -0
- package/cypress/e2e/Login_Testcases/03_Verify_Lockout_user_failed_login.cy.js +30 -0
- package/cypress/e2e/Regression_Suit/10_Verify_successful_purchase_multiple_items.cy.js +98 -0
- package/cypress/e2e/Regression_Suit/11_testfail.cy.js +98 -0
- package/cypress/e2e/Smoke_Suit/SMK001_Verify user can log in with valid credentials.cy.js +32 -0
- package/cypress/e2e/Smoke_Suit/SMK002_Verify product list loads after login.cy.js +34 -0
- package/cypress/e2e/Smoke_Suit/SMK003_Verify user can add a product to cart.cy.js +49 -0
- package/cypress/failed-specs.json +3 -0
- package/cypress/fixtures/Cart/01_Adding_product_to_cart.json +6 -0
- package/cypress/fixtures/Cart/02_Removing_product_from_cart.json +6 -0
- package/cypress/fixtures/Cart/03_Updating_of_cart_icon.json +7 -0
- package/cypress/fixtures/Checkout/01_purchase_of_single_product.json +10 -0
- package/cypress/fixtures/Checkout/02_missing_info_fail_purchase.json +8 -0
- package/cypress/fixtures/Checkout/03_cancel_purcahse_redirect_to_cart.json +9 -0
- package/cypress/fixtures/Login_Data/01_Valid_login.json +5 -0
- package/cypress/fixtures/Login_Data/02_Invalid_Login.json +6 -0
- package/cypress/fixtures/Login_Data/03_Lockout_user.json +6 -0
- package/cypress/fixtures/regression_data/01_regression_data.json +12 -0
- package/cypress/fixtures/smoke_test_data/SMK001_Verify user can log in with valid credentials.json +5 -0
- package/cypress/fixtures/smoke_test_data/SMK002_Verify product list loads after login.json +6 -0
- package/cypress/fixtures/smoke_test_data/SMK003_Verify user can add a product to cart.json +6 -0
- package/cypress/results/fail_2025-12-19T160847+0530-11_testfail.json +110 -0
- package/cypress/results/fail_2025-12-19T160936+0530-11_testfail.json +110 -0
- package/cypress/results/pass_2025-12-19T160750+0530-04_verify_complete_successful_purchase_of_single_item.json +106 -0
- package/cypress/results/pass_2025-12-19T160756+0530-05_verify_checkout_with_missing_firstname_fails.json +106 -0
- package/cypress/results/pass_2025-12-19T160802+0530-06_verify_user_can_cancel_checkout_and redirected_to_cart.json +106 -0
- package/cypress/results/pass_2025-12-19T160806+0530-07_verify_Adding_single_item_to_cart.json +106 -0
- package/cypress/results/pass_2025-12-19T160809+0530-08_verify_removing_item_from_the_cart.json +106 -0
- package/cypress/results/pass_2025-12-19T160814+0530-09_verify_updating_of_cart_after_adding_multiple_item.json +106 -0
- package/cypress/results/pass_2025-12-19T160822+0530-10_Verify_successful_purchase_multiple_items.json +106 -0
- package/cypress/results/pass_2025-12-19T160850+0530-SMK001_Verify user can log in with valid credentials.json +106 -0
- package/cypress/results/pass_2025-12-19T160854+0530-SMK002_Verify product list loads after login.json +106 -0
- package/cypress/results/pass_2025-12-19T160857+0530-SMK003_Verify user can add a product to cart.json +106 -0
- package/cypress/results/pass_2025-12-19T160900+0530-01_Verify_Valid_Login.json +106 -0
- package/cypress/results/pass_2025-12-19T160903+0530-02_Verify_Invalid_Login_by_wrong_password.json +106 -0
- package/cypress/results/pass_2025-12-19T160905+0530-03_Verify_Lockout_user_failed_login.json +106 -0
- package/cypress/screenshots/11_testfail.cy.js/11_failed -- 02_failed (failed) (attempt 2).png +0 -0
- package/cypress/screenshots/11_testfail.cy.js/11_failed -- 02_failed (failed).png +0 -0
- package/cypress/support/Locators/Common_Locators.js +57 -0
- package/cypress/support/commands.js +25 -0
- package/cypress/support/e2e.js +43 -0
- package/cypress/support/encryption.js +45 -0
- package/cypress/support/env.js +31 -0
- package/cypress/support/interface.js +6 -0
- package/cypress/support/pageObjects/CartPage.js +56 -0
- package/cypress/support/pageObjects/CheckoutPage.js +111 -0
- package/cypress/support/pageObjects/GenerateRandomData.js +62 -0
- package/cypress/support/pageObjects/Homepage.js +92 -0
- package/cypress/support/pageObjects/navigationPage.js +44 -0
- package/cypress.config.js +44 -0
- package/mochawesome-report/assets/MaterialIcons-Regular.woff +0 -0
- package/mochawesome-report/assets/MaterialIcons-Regular.woff2 +0 -0
- package/mochawesome-report/assets/app.css +14 -0
- package/mochawesome-report/assets/app.js +2 -0
- package/mochawesome-report/assets/app.js.LICENSE.txt +55 -0
- package/mochawesome-report/assets/roboto-light-webfont.woff +0 -0
- package/mochawesome-report/assets/roboto-light-webfont.woff2 +0 -0
- package/mochawesome-report/assets/roboto-medium-webfont.woff +0 -0
- package/mochawesome-report/assets/roboto-medium-webfont.woff2 +0 -0
- package/mochawesome-report/assets/roboto-regular-webfont.woff +0 -0
- package/mochawesome-report/assets/roboto-regular-webfont.woff2 +0 -0
- package/mochawesome-report/output.html +2 -0
- package/output.json +864 -0
- package/package.json +43 -0
- package/run-parallel-cypress.js +57 -0
- package/runAllSteps.js +47 -0
- package/syncTestResultsToExcel.js +219 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*!
|
|
8
|
+
Copyright (c) 2017 Jed Watson.
|
|
9
|
+
Licensed under the MIT License (MIT), see
|
|
10
|
+
http://jedwatson.github.io/classnames
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/*! *****************************************************************************
|
|
14
|
+
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
15
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
16
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
17
|
+
License at http://www.apache.org/licenses/LICENSE-2.0
|
|
18
|
+
|
|
19
|
+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
20
|
+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
21
|
+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
22
|
+
MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
23
|
+
|
|
24
|
+
See the Apache Version 2.0 License for specific language governing permissions
|
|
25
|
+
and limitations under the License.
|
|
26
|
+
***************************************************************************** */
|
|
27
|
+
|
|
28
|
+
/*! mochawesome-report-generator 6.2.0 | https://github.com/adamgruber/mochawesome-report-generator */
|
|
29
|
+
|
|
30
|
+
/** @license React v0.19.1
|
|
31
|
+
* scheduler.production.min.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the MIT license found in the
|
|
36
|
+
* LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
/** @license React v16.13.1
|
|
40
|
+
* react-dom.production.min.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/
|
|
47
|
+
|
|
48
|
+
/** @license React v16.13.1
|
|
49
|
+
* react.production.min.js
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the MIT license found in the
|
|
54
|
+
* LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Mochawesome Report</title><link rel="stylesheet" href="assets\app.css"/></head><body data-raw="{"stats":{"suites":14,"tests":14,"passes":13,"pending":0,"failures":1,"testsRegistered":14,"passPercent":92.85714285714286,"pendingPercent":0,"other":0,"hasOther":false,"skipped":0,"hasSkipped":false,"start":"2025-12-19T10:37:43.723Z","end":"2025-12-19T10:39:05.830Z","duration":82107},"results":[{"uuid":"b6f737f5-b68d-4d25-b9d5-96e575b602d0","title":"","fullFile":"cypress\\e2e\\Regression_Suit\\11_testfail.cy.js","file":"cypress\\e2e\\Regression_Suit\\11_testfail.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"39a7b1c2-3b15-4f65-af5b-66504b2f4546","title":"11_failed","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"02_failed","fullTitle":"11_failed 02_failed","timedOut":null,"duration":11381,"state":"failed","speed":null,"pass":false,"fail":true,"pending":false,"context":null,"code":"//verify the no item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);\n//add Sauce Labs Bike Light in the cart\n_Homepage.homepage.AddingItemtoCart(\"123\");\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\ncy.wait(1000);\n//add Sauce Labs Backpack in the cart\n_Homepage.homepage.AddingItemtoCart(Bagpack);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(2);\n//click on the cart icon \n_Homepage.homepage.ClickonCartBtn();\n//verify the product is added in to the cart \n_CartPage.cartpage.verifytheCartpageOpened();\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bagpack);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(2);\n//click on checkout button\n_CartPage.cartpage.clickOnCheckoutButton();\n//verify checkout page open\n_CheckoutPage.checkout_page.verifytheCheckoutpageOpened();\n//enter your information for checkout\n_CheckoutPage.checkout_page.enterDetailsforCheckout(checkout_Info_Parameter);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(2);\n//click on Continue button\n_CheckoutPage.checkout_page.clickOnContinueButton();\n//verify the item is added to the cart \n_CheckoutPage.checkout_page.VerifyProductNameAndPriceInFinalStep(Bike_light, Price_Item_1);\n//verify the item is added to the cart \n_CheckoutPage.checkout_page.VerifyProductNameAndPriceInFinalStep(Bagpack, Price_Item_2);\n//verify total Price to pay after tax\n_CheckoutPage.checkout_page.verifyTotalPriceToPay();\n//click on Finish Button\n_CheckoutPage.checkout_page.clickOnFinishButton();\n//verify Purchase was successful\n_CheckoutPage.checkout_page.VerifyPurchase_Success();\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);","err":{"message":"AssertionError: Timed out retrying after 10000ms: Expected to find element: `[id=\"shopping_cart_container\"] span`, but never found it.","estack":"AssertionError: Timed out retrying after 10000ms: Expected to find element: `[id=\"shopping_cart_container\"] span`, but never found it.\n at Homepage.verifyCartIconQuantity (webpack://cypress_task/./cypress/support/pageObjects/Homepage.js:31:96)\n at Context.eval (webpack://cypress_task/./cypress/e2e/Regression_Suit/11_testfail.cy.js:53:17)","diff":null},"uuid":"bc660760-c2f0-4692-914b-62db3a076f93","parentUUID":"39a7b1c2-3b15-4f65-af5b-66504b2f4546","isHook":false,"skipped":false}],"suites":[],"passes":[],"failures":["bc660760-c2f0-4692-914b-62db3a076f93"],"pending":[],"skipped":[],"duration":11381,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"3d2f2791-a537-4721-bf10-73e0552215c6","title":"","fullFile":"cypress\\e2e\\Checkout_Testcases\\04_verify_complete_successful_purchase_of_single_item.cy.js","file":"cypress\\e2e\\Checkout_Testcases\\04_verify_complete_successful_purchase_of_single_item.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"c6486baf-608d-4b01-99ce-da48193ef957","title":"04_verify_complete_successful_purchase_of_single_item","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"01_verify_complete_successful_purchase_of_single_item","fullTitle":"04_verify_complete_successful_purchase_of_single_item 01_verify_complete_successful_purchase_of_single_item","timedOut":null,"duration":5257,"state":"passed","speed":"medium","pass":true,"fail":false,"pending":false,"context":null,"code":"//verify the no item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);\n//add Sauce Labs Bike Light in the cart\n_Homepage.homepage.AddingItemtoCart(Bike_light);\n//click on the cart icon \n_Homepage.homepage.ClickonCartBtn();\n//verify the product is added in to the cart \n_CartPage.cartpage.verifytheCartpageOpened();\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//click on checkout button\n_CartPage.cartpage.clickOnCheckoutButton();\n//verify checkout page open\n_CheckoutPage.checkout_page.verifytheCheckoutpageOpened();\n//enter your information for checkout\n_CheckoutPage.checkout_page.enterDetailsforCheckout(checkout_Info_Parameter);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//click on Continue button\n_CheckoutPage.checkout_page.clickOnContinueButton();\n//verify the item is added to the cart \n_CheckoutPage.checkout_page.VerifyProductNameAndPriceInFinalStep(Bike_light, Price);\n//verify total Price to pay after tax\n_CheckoutPage.checkout_page.verifyTotalPriceToPay();\n//click on Finish Button\n_CheckoutPage.checkout_page.clickOnFinishButton();\n//verify Purchase was successful\n_CheckoutPage.checkout_page.VerifyPurchase_Success();\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);","err":{},"uuid":"938eeaa9-f47e-4290-997e-c8eb50722b36","parentUUID":"c6486baf-608d-4b01-99ce-da48193ef957","isHook":false,"skipped":false}],"suites":[],"passes":["938eeaa9-f47e-4290-997e-c8eb50722b36"],"failures":[],"pending":[],"skipped":[],"duration":5257,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"662c941f-dd92-413e-9b5c-0d235503dbb5","title":"","fullFile":"cypress\\e2e\\Checkout_Testcases\\05_verify_checkout_with_missing_firstname_fails.cy.js","file":"cypress\\e2e\\Checkout_Testcases\\05_verify_checkout_with_missing_firstname_fails.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"05fdc87d-d1f7-47d2-8c7f-237990ed23aa","title":"05_verify_checkout_with_missing_firstname_fails.cy.js","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"02_verify_checkout_with_missing_firstname_fails.cy.js","fullTitle":"05_verify_checkout_with_missing_firstname_fails.cy.js 02_verify_checkout_with_missing_firstname_fails.cy.js","timedOut":null,"duration":3222,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//verify the no item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);\n//add Sauce Labs Bike Light in the cart\n_Homepage.homepage.AddingItemtoCart(Bike_light);\n//click on the cart icon \n_Homepage.homepage.ClickonCartBtn();\n//verify the product is added in to the cart \n_CartPage.cartpage.verifytheCartpageOpened();\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//click on checkout button\n_CartPage.cartpage.clickOnCheckoutButton();\n//verify checkout page open\n_CheckoutPage.checkout_page.verifytheCheckoutpageOpened();\n//enter your information for checkout\n_CheckoutPage.checkout_page.enterDetailsforCheckout(checkout_Info_Parameter);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//click on Continue button\n_CheckoutPage.checkout_page.clickOnContinueButton();\n//verify error is displayed \n_CheckoutPage.checkout_page.VerifyError_Pop_up();\n//verify Item Still added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//verify still on checkout page \n_CheckoutPage.checkout_page.verifytheCheckoutpageOpened();","err":{},"uuid":"b5c9775c-5098-4c74-9d45-96a2ad7361b3","parentUUID":"05fdc87d-d1f7-47d2-8c7f-237990ed23aa","isHook":false,"skipped":false}],"suites":[],"passes":["b5c9775c-5098-4c74-9d45-96a2ad7361b3"],"failures":[],"pending":[],"skipped":[],"duration":3222,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"d7ca4cad-aaa5-4e91-9c46-13a0a79ec3dd","title":"","fullFile":"cypress\\e2e\\Checkout_Testcases\\06_verify_user_can_cancel_checkout_and redirected_to_cart.cy.js","file":"cypress\\e2e\\Checkout_Testcases\\06_verify_user_can_cancel_checkout_and redirected_to_cart.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"51141933-379a-4a03-9360-cd8417387b1c","title":"06_verify_user_can_cancel_checkout_and redirected_to_cart.cy.js","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"03_verify_user_can_cancel_checkout_and redirected_to_cart.cy.js","fullTitle":"06_verify_user_can_cancel_checkout_and redirected_to_cart.cy.js 03_verify_user_can_cancel_checkout_and redirected_to_cart.cy.js","timedOut":null,"duration":4440,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//verify the no item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);\n//add Sauce Labs Bike Light in the cart\n_Homepage.homepage.AddingItemtoCart(Bike_light);\n//click on the cart icon \n_Homepage.homepage.ClickonCartBtn();\n//verify the product is added in to the cart \n_CartPage.cartpage.verifytheCartpageOpened();\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//click on checkout button\n_CartPage.cartpage.clickOnCheckoutButton();\n//verify checkout page open\n_CheckoutPage.checkout_page.verifytheCheckoutpageOpened();\n//enter your information for checkout\n_CheckoutPage.checkout_page.enterDetailsforCheckout(checkout_Info_Parameter);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//click on cancel button\n_CheckoutPage.checkout_page.clickOnCancelButton();\n//verify the product is added in to the cart \n_CartPage.cartpage.verifytheCartpageOpened();\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);","err":{},"uuid":"e4b70423-ab93-487a-b6ad-08b3f3681dd0","parentUUID":"51141933-379a-4a03-9360-cd8417387b1c","isHook":false,"skipped":false}],"suites":[],"passes":["e4b70423-ab93-487a-b6ad-08b3f3681dd0"],"failures":[],"pending":[],"skipped":[],"duration":4440,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"db5e21ea-fd6b-4bc5-98e8-8901cc729978","title":"","fullFile":"cypress\\e2e\\Cart_Testcases\\07_verify_Adding_single_item_to_cart.cy.js","file":"cypress\\e2e\\Cart_Testcases\\07_verify_Adding_single_item_to_cart.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"743366b4-014d-4a63-b9f8-55279679de4c","title":"07_verify_Adding_single_item_to_cart","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"01_verify_Adding_single_item_to_cart","fullTitle":"07_verify_Adding_single_item_to_cart 01_verify_Adding_single_item_to_cart","timedOut":null,"duration":1727,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//add Sauce Labs Backpack in the cart\n_Homepage.homepage.AddingItemtoCart(Bagpack);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//verify remove item button is visible for the same product\n_Homepage.homepage.verifyRemovefromCartButton(Bagpack);","err":{},"uuid":"1c93b5fb-530b-4f31-8374-045c6a1b9d22","parentUUID":"743366b4-014d-4a63-b9f8-55279679de4c","isHook":false,"skipped":false}],"suites":[],"passes":["1c93b5fb-530b-4f31-8374-045c6a1b9d22"],"failures":[],"pending":[],"skipped":[],"duration":1727,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"bfe48408-0c15-463a-a089-3532d1d3eb55","title":"","fullFile":"cypress\\e2e\\Cart_Testcases\\08_verify_removing_item_from_the_cart.cy.js","file":"cypress\\e2e\\Cart_Testcases\\08_verify_removing_item_from_the_cart.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"1984dc69-8fe6-44b4-9e85-f25a9a95d7ec","title":"08_verify_removing_item_from_the_cart","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"02_verify_removing_item_from_the_cart","fullTitle":"08_verify_removing_item_from_the_cart 02_verify_removing_item_from_the_cart","timedOut":null,"duration":1754,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//add Sauce Labs Bike Light in the cart\n_Homepage.homepage.AddingItemtoCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//verify remove item button is visible for the same product\n_Homepage.homepage.verifyRemovefromCartButton(Bike_light);\n//click on the cart icon \n_Homepage.homepage.ClickonCartBtn();\n//verify the product is added in to the cart \n_CartPage.cartpage.verifytheCartpageOpened();\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//remove the item form the container \n_CartPage.cartpage.RemoveItemfromCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);\n//verify no item present in the cart\n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);","err":{},"uuid":"e0e8fc4e-5c92-4577-88a4-7414849a0897","parentUUID":"1984dc69-8fe6-44b4-9e85-f25a9a95d7ec","isHook":false,"skipped":false}],"suites":[],"passes":["e0e8fc4e-5c92-4577-88a4-7414849a0897"],"failures":[],"pending":[],"skipped":[],"duration":1754,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"bb55ca00-8628-4795-9b31-5133ea9918ca","title":"","fullFile":"cypress\\e2e\\Cart_Testcases\\09_verify_updating_of_cart_after_adding_multiple_item.cy.js","file":"cypress\\e2e\\Cart_Testcases\\09_verify_updating_of_cart_after_adding_multiple_item.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"688100ec-13af-4740-b572-f8df34ee49b3","title":"09_verify_updating_of_cart_after_adding_multiple_item","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"03_verify_updating_of_cart_after_adding_multiple_item","fullTitle":"09_verify_updating_of_cart_after_adding_multiple_item 03_verify_updating_of_cart_after_adding_multiple_item","timedOut":null,"duration":2879,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//verify the no item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);\n//add Sauce Labs Bike Light in the cart\n_Homepage.homepage.AddingItemtoCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\ncy.wait(1000);\n//add Sauce Labs Backpack in the cart\n_Homepage.homepage.AddingItemtoCart(Bagpack);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(2);\n//click on the cart icon \n_Homepage.homepage.ClickonCartBtn();\n//verify the product is added in to the cart \n_CartPage.cartpage.verifytheCartpageOpened();\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bagpack);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(2);\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);\n//verify remove item button is visible for the same product\n_Homepage.homepage.verifyRemovefromCartButton(Bike_light);\n//verify remove item button is visible for the same product\n_Homepage.homepage.verifyRemovefromCartButton(Bagpack);\n//remove the item form the container \n_CartPage.cartpage.RemoveItemfromCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//verify bike light item not present in the cart\n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);\n//remove the item form the container \n_CartPage.cartpage.RemoveItemfromCart(Bagpack);\n//remove the item form the container \n_CartPage.cartpage.RemoveItemfromCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);\n//verify no item present in the cart\n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);","err":{},"uuid":"2c56316e-0119-4b1d-ad51-c66dab22dd21","parentUUID":"688100ec-13af-4740-b572-f8df34ee49b3","isHook":false,"skipped":false}],"suites":[],"passes":["2c56316e-0119-4b1d-ad51-c66dab22dd21"],"failures":[],"pending":[],"skipped":[],"duration":2879,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"d2db3f4a-eb52-4906-bce7-d96892472939","title":"","fullFile":"cypress\\e2e\\Regression_Suit\\10_Verify_successful_purchase_multiple_items.cy.js","file":"cypress\\e2e\\Regression_Suit\\10_Verify_successful_purchase_multiple_items.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"477df4dd-4704-4923-b95a-4d3e7eef195e","title":"10_verify_complete_successful_purchase_of_single_item","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"01_verify_complete_successful_purchase_of_single_item","fullTitle":"10_verify_complete_successful_purchase_of_single_item 01_verify_complete_successful_purchase_of_single_item","timedOut":null,"duration":5592,"state":"passed","speed":"medium","pass":true,"fail":false,"pending":false,"context":null,"code":"//verify the no item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);\n//add Sauce Labs Bike Light in the cart\n_Homepage.homepage.AddingItemtoCart(Bike_light);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\ncy.wait(1000);\n//add Sauce Labs Backpack in the cart\n_Homepage.homepage.AddingItemtoCart(Bagpack);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(2);\n//click on the cart icon \n_Homepage.homepage.ClickonCartBtn();\n//verify the product is added in to the cart \n_CartPage.cartpage.verifytheCartpageOpened();\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bike_light);\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bagpack);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(2);\n//click on checkout button\n_CartPage.cartpage.clickOnCheckoutButton();\n//verify checkout page open\n_CheckoutPage.checkout_page.verifytheCheckoutpageOpened();\n//enter your information for checkout\n_CheckoutPage.checkout_page.enterDetailsforCheckout(checkout_Info_Parameter);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(2);\n//click on Continue button\n_CheckoutPage.checkout_page.clickOnContinueButton();\n//verify the item is added to the cart \n_CheckoutPage.checkout_page.VerifyProductNameAndPriceInFinalStep(Bike_light, Price_Item_1);\n//verify the item is added to the cart \n_CheckoutPage.checkout_page.VerifyProductNameAndPriceInFinalStep(Bagpack, Price_Item_2);\n//verify total Price to pay after tax\n_CheckoutPage.checkout_page.verifyTotalPriceToPay();\n//click on Finish Button\n_CheckoutPage.checkout_page.clickOnFinishButton();\n//verify Purchase was successful\n_CheckoutPage.checkout_page.VerifyPurchase_Success();\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(0);","err":{},"uuid":"71b70869-9c3e-4a64-86fa-bfb8164cc603","parentUUID":"477df4dd-4704-4923-b95a-4d3e7eef195e","isHook":false,"skipped":false}],"suites":[],"passes":["71b70869-9c3e-4a64-86fa-bfb8164cc603"],"failures":[],"pending":[],"skipped":[],"duration":5592,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"3443305f-b9aa-49a8-b190-f1c4f6c4493f","title":"","fullFile":"cypress\\e2e\\Smoke_Suit\\SMK001_Verify user can log in with valid credentials.cy.js","file":"cypress\\e2e\\Smoke_Suit\\SMK001_Verify user can log in with valid credentials.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"5bf6b2da-2294-49ea-ab67-6e882212c83a","title":"SMK001_Verify user can log in with valid credentials","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"SMK001_Verify user can log in with valid credentials","fullTitle":"SMK001_Verify user can log in with valid credentials SMK001_Verify user can log in with valid credentials","timedOut":null,"duration":1066,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//login with valid user\n_navigationPage.NavigationPage.loginWithCredentials(User);\n//verify the home is visble \n_Homepage.homepage.verifyHomepage();\n//verify the products page is opened and products are displayed\n_Homepage.homepage.verifyProductsPage();","err":{},"uuid":"ece1f2ae-06b2-4444-8ab5-f0ea05eaa643","parentUUID":"5bf6b2da-2294-49ea-ab67-6e882212c83a","isHook":false,"skipped":false}],"suites":[],"passes":["ece1f2ae-06b2-4444-8ab5-f0ea05eaa643"],"failures":[],"pending":[],"skipped":[],"duration":1066,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"ce7669f7-1370-4cf7-af26-3d2d3f7dbe9a","title":"","fullFile":"cypress\\e2e\\Smoke_Suit\\SMK002_Verify product list loads after login.cy.js","file":"cypress\\e2e\\Smoke_Suit\\SMK002_Verify product list loads after login.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"5e626ca8-05b0-42e9-9b0d-08a276d3e428","title":"SMK002_Verify product list loads after login","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"SMK002_Verify product list loads after login","fullTitle":"SMK002_Verify product list loads after login SMK002_Verify product list loads after login","timedOut":null,"duration":2069,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//login with valid user\n_navigationPage.NavigationPage.loginWithCredentials(User);\n//verify the home is visble \n_Homepage.homepage.verifyHomepage();\n//verify the products page is opened and products are displayed\n_Homepage.homepage.verifyProductsPage();\n//verify minimum 6 products are displayed\n_Homepage.homepage.verifyMinimumProductsDisplayed(this.data.product_length);","err":{},"uuid":"bc362bb9-59c8-4ceb-a99f-b8d07946c896","parentUUID":"5e626ca8-05b0-42e9-9b0d-08a276d3e428","isHook":false,"skipped":false}],"suites":[],"passes":["bc362bb9-59c8-4ceb-a99f-b8d07946c896"],"failures":[],"pending":[],"skipped":[],"duration":2069,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"ab2111f6-78ac-4c2b-9fdc-b5353ea8f9dc","title":"","fullFile":"cypress\\e2e\\Smoke_Suit\\SMK003_Verify user can add a product to cart.cy.js","file":"cypress\\e2e\\Smoke_Suit\\SMK003_Verify user can add a product to cart.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"7f2ebb3e-9b41-4457-9a7a-92db0a6aaef9","title":"SMK003_Verify user can add a product to cart","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"SMK003_Verify user can add a product to cart","fullTitle":"SMK003_Verify user can add a product to cart SMK003_Verify user can add a product to cart","timedOut":null,"duration":1682,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//add Sauce Labs Backpack in the cart\n_Homepage.homepage.AddingItemtoCart(Bagpack);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);\n//verify remove item button is visible for the same product\n_Homepage.homepage.verifyRemovefromCartButton(Bagpack);\n//click on the cart icon \n_Homepage.homepage.ClickonCartBtn();\n//verify the product is added in to the cart \n_CartPage.cartpage.verifytheCartpageOpened();\n//verify the item is added to the cart \n_CartPage.cartpage.VerifyAddedItemtoCart(Bagpack);\n//verify the item count added to cart \n_Homepage.homepage.verifyCartIconQuantity(1);","err":{},"uuid":"d3f3f6de-1b3e-493d-b52a-08ee20f92036","parentUUID":"7f2ebb3e-9b41-4457-9a7a-92db0a6aaef9","isHook":false,"skipped":false}],"suites":[],"passes":["d3f3f6de-1b3e-493d-b52a-08ee20f92036"],"failures":[],"pending":[],"skipped":[],"duration":1682,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"e3aefc54-2c9d-43af-8dc5-24731f5bf33b","title":"","fullFile":"cypress\\e2e\\Login_Testcases\\01_Verify_Valid_Login.cy.js","file":"cypress\\e2e\\Login_Testcases\\01_Verify_Valid_Login.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"4479ca34-5fbd-43dc-afb1-0e1235b4a2d1","title":"01_Verify_Valid_Login","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"01_Verify_Valid_Login","fullTitle":"01_Verify_Valid_Login 01_Verify_Valid_Login","timedOut":null,"duration":1045,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//login with valid user\n_navigationPage.NavigationPage.loginWithCredentials(User);\n//verify the home is visble \n_Homepage.homepage.verifyHomepage();","err":{},"uuid":"6459f922-a492-4253-9f00-1811357f4236","parentUUID":"4479ca34-5fbd-43dc-afb1-0e1235b4a2d1","isHook":false,"skipped":false}],"suites":[],"passes":["6459f922-a492-4253-9f00-1811357f4236"],"failures":[],"pending":[],"skipped":[],"duration":1045,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"63a9d027-9062-4bc8-9f46-1de252152f43","title":"","fullFile":"cypress\\e2e\\Login_Testcases\\02_Verify_Invalid_Login_by_wrong_password.cy.js","file":"cypress\\e2e\\Login_Testcases\\02_Verify_Invalid_Login_by_wrong_password.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"fded1337-c99b-4515-a48e-9abf14903a89","title":"02_Verify_Invalid_Login_by_wrong_password","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"02_Verify_Invalid_Login_by_wrong_password","fullTitle":"02_Verify_Invalid_Login_by_wrong_password 02_Verify_Invalid_Login_by_wrong_password","timedOut":null,"duration":1074,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//login with valid user\n_navigationPage.NavigationPage.loginWithCredentials(Invalid_User);\n//verify the home is visble \n_navigationPage.NavigationPage.verifyLoginErrorPopup(ErrorText);","err":{},"uuid":"1858b47a-2554-44fc-9761-d39e9bfe3046","parentUUID":"fded1337-c99b-4515-a48e-9abf14903a89","isHook":false,"skipped":false}],"suites":[],"passes":["1858b47a-2554-44fc-9761-d39e9bfe3046"],"failures":[],"pending":[],"skipped":[],"duration":1074,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000},{"uuid":"50c60f25-5fe4-4219-91e3-de9db032d272","title":"","fullFile":"cypress\\e2e\\Login_Testcases\\03_Verify_Lockout_user_failed_login.cy.js","file":"cypress\\e2e\\Login_Testcases\\03_Verify_Lockout_user_failed_login.cy.js","beforeHooks":[],"afterHooks":[],"tests":[],"suites":[{"uuid":"db3e828e-b83f-4bcb-bf8f-b45e73a42465","title":"03_Verify_Lockout_user_failed_login","fullFile":"","file":"","beforeHooks":[],"afterHooks":[],"tests":[{"title":"03_Verify_Lockout_user_failed_login","fullTitle":"03_Verify_Lockout_user_failed_login 03_Verify_Lockout_user_failed_login","timedOut":null,"duration":1061,"state":"passed","speed":"fast","pass":true,"fail":false,"pending":false,"context":null,"code":"//login with valid user\n_navigationPage.NavigationPage.loginWithCredentials(Locket_out_User);\n//verify the home is visble \n_navigationPage.NavigationPage.verifyLoginErrorPopup(ErrorText);","err":{},"uuid":"c929854b-f2ac-4b84-bbea-8c8ec57cd022","parentUUID":"db3e828e-b83f-4bcb-bf8f-b45e73a42465","isHook":false,"skipped":false}],"suites":[],"passes":["c929854b-f2ac-4b84-bbea-8c8ec57cd022"],"failures":[],"pending":[],"skipped":[],"duration":1061,"root":false,"rootEmpty":false,"_timeout":2000}],"passes":[],"failures":[],"pending":[],"skipped":[],"duration":0,"root":true,"rootEmpty":true,"_timeout":2000}],"meta":{"mocha":{"version":"7.2.0"},"mochawesome":{"options":{"quiet":false,"reportFilename":"[status]_[datetime]-[name]","saveHtml":false,"saveJson":true,"consoleReporter":"spec","useInlineDiffs":false,"code":true},"version":"7.1.3"},"marge":{"options":{"reportDir":"./cypress/results","reportFilename":"[status]_[datetime]-[name]","overwrite":true,"html":false,"json":true},"version":"6.2.0"}}}" data-config="{"reportFilename":"output","reportDir":"mochawesome-report","reportTitle":"Cypress_Sauce_Demo","reportPageTitle":"Mochawesome Report","inline":false,"inlineAssets":false,"cdn":false,"charts":false,"enableCharts":false,"code":true,"enableCode":true,"autoOpen":false,"overwrite":true,"timestamp":false,"ts":false,"showPassed":true,"showFailed":true,"showPending":true,"showSkipped":false,"showHooks":"failed","saveJson":false,"saveHtml":true,"dev":false,"assetsDir":"mochawesome-report\\assets","htmlFile":"D:\\SourceandCode\\Cypress_Sauce_Demo\\mochawesome-report\\output.html"}"><div id="report"></div><script src="assets\app.js"></script></body></html>
|