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.
Files changed (80) hide show
  1. package/.github/workflows/cyemial.yaml +98 -0
  2. package/Daily_Tracker.xlsx +0 -0
  3. package/Mannual_testcases.xlsx +0 -0
  4. package/clean_mochawesome.js +26 -0
  5. package/cleanupOutput.js +16 -0
  6. package/cleanupReports.js +15 -0
  7. package/cypress/e2e/Cart_Testcases/07_verify_Adding_single_item_to_cart.cy.js +40 -0
  8. package/cypress/e2e/Cart_Testcases/08_verify_removing_item_from_the_cart.cy.js +55 -0
  9. package/cypress/e2e/Cart_Testcases/09_verify_updating_of_cart_after_adding_multiple_item.cy.js +75 -0
  10. package/cypress/e2e/Checkout_Testcases/04_verify_complete_successful_purchase_of_single_item.cy.js +83 -0
  11. package/cypress/e2e/Checkout_Testcases/05_verify_checkout_with_missing_firstname_fails.cy.js +78 -0
  12. package/cypress/e2e/Checkout_Testcases/06_verify_user_can_cancel_checkout_and redirected_to_cart.cy.js +79 -0
  13. package/cypress/e2e/Login_Testcases/01_Verify_Valid_Login.cy.js +30 -0
  14. package/cypress/e2e/Login_Testcases/02_Verify_Invalid_Login_by_wrong_password.cy.js +29 -0
  15. package/cypress/e2e/Login_Testcases/03_Verify_Lockout_user_failed_login.cy.js +30 -0
  16. package/cypress/e2e/Regression_Suit/10_Verify_successful_purchase_multiple_items.cy.js +98 -0
  17. package/cypress/e2e/Regression_Suit/11_testfail.cy.js +98 -0
  18. package/cypress/e2e/Smoke_Suit/SMK001_Verify user can log in with valid credentials.cy.js +32 -0
  19. package/cypress/e2e/Smoke_Suit/SMK002_Verify product list loads after login.cy.js +34 -0
  20. package/cypress/e2e/Smoke_Suit/SMK003_Verify user can add a product to cart.cy.js +49 -0
  21. package/cypress/failed-specs.json +3 -0
  22. package/cypress/fixtures/Cart/01_Adding_product_to_cart.json +6 -0
  23. package/cypress/fixtures/Cart/02_Removing_product_from_cart.json +6 -0
  24. package/cypress/fixtures/Cart/03_Updating_of_cart_icon.json +7 -0
  25. package/cypress/fixtures/Checkout/01_purchase_of_single_product.json +10 -0
  26. package/cypress/fixtures/Checkout/02_missing_info_fail_purchase.json +8 -0
  27. package/cypress/fixtures/Checkout/03_cancel_purcahse_redirect_to_cart.json +9 -0
  28. package/cypress/fixtures/Login_Data/01_Valid_login.json +5 -0
  29. package/cypress/fixtures/Login_Data/02_Invalid_Login.json +6 -0
  30. package/cypress/fixtures/Login_Data/03_Lockout_user.json +6 -0
  31. package/cypress/fixtures/regression_data/01_regression_data.json +12 -0
  32. package/cypress/fixtures/smoke_test_data/SMK001_Verify user can log in with valid credentials.json +5 -0
  33. package/cypress/fixtures/smoke_test_data/SMK002_Verify product list loads after login.json +6 -0
  34. package/cypress/fixtures/smoke_test_data/SMK003_Verify user can add a product to cart.json +6 -0
  35. package/cypress/results/fail_2025-12-19T160847+0530-11_testfail.json +110 -0
  36. package/cypress/results/fail_2025-12-19T160936+0530-11_testfail.json +110 -0
  37. package/cypress/results/pass_2025-12-19T160750+0530-04_verify_complete_successful_purchase_of_single_item.json +106 -0
  38. package/cypress/results/pass_2025-12-19T160756+0530-05_verify_checkout_with_missing_firstname_fails.json +106 -0
  39. package/cypress/results/pass_2025-12-19T160802+0530-06_verify_user_can_cancel_checkout_and redirected_to_cart.json +106 -0
  40. package/cypress/results/pass_2025-12-19T160806+0530-07_verify_Adding_single_item_to_cart.json +106 -0
  41. package/cypress/results/pass_2025-12-19T160809+0530-08_verify_removing_item_from_the_cart.json +106 -0
  42. package/cypress/results/pass_2025-12-19T160814+0530-09_verify_updating_of_cart_after_adding_multiple_item.json +106 -0
  43. package/cypress/results/pass_2025-12-19T160822+0530-10_Verify_successful_purchase_multiple_items.json +106 -0
  44. package/cypress/results/pass_2025-12-19T160850+0530-SMK001_Verify user can log in with valid credentials.json +106 -0
  45. package/cypress/results/pass_2025-12-19T160854+0530-SMK002_Verify product list loads after login.json +106 -0
  46. package/cypress/results/pass_2025-12-19T160857+0530-SMK003_Verify user can add a product to cart.json +106 -0
  47. package/cypress/results/pass_2025-12-19T160900+0530-01_Verify_Valid_Login.json +106 -0
  48. package/cypress/results/pass_2025-12-19T160903+0530-02_Verify_Invalid_Login_by_wrong_password.json +106 -0
  49. package/cypress/results/pass_2025-12-19T160905+0530-03_Verify_Lockout_user_failed_login.json +106 -0
  50. package/cypress/screenshots/11_testfail.cy.js/11_failed -- 02_failed (failed) (attempt 2).png +0 -0
  51. package/cypress/screenshots/11_testfail.cy.js/11_failed -- 02_failed (failed).png +0 -0
  52. package/cypress/support/Locators/Common_Locators.js +57 -0
  53. package/cypress/support/commands.js +25 -0
  54. package/cypress/support/e2e.js +43 -0
  55. package/cypress/support/encryption.js +45 -0
  56. package/cypress/support/env.js +31 -0
  57. package/cypress/support/interface.js +6 -0
  58. package/cypress/support/pageObjects/CartPage.js +56 -0
  59. package/cypress/support/pageObjects/CheckoutPage.js +111 -0
  60. package/cypress/support/pageObjects/GenerateRandomData.js +62 -0
  61. package/cypress/support/pageObjects/Homepage.js +92 -0
  62. package/cypress/support/pageObjects/navigationPage.js +44 -0
  63. package/cypress.config.js +44 -0
  64. package/mochawesome-report/assets/MaterialIcons-Regular.woff +0 -0
  65. package/mochawesome-report/assets/MaterialIcons-Regular.woff2 +0 -0
  66. package/mochawesome-report/assets/app.css +14 -0
  67. package/mochawesome-report/assets/app.js +2 -0
  68. package/mochawesome-report/assets/app.js.LICENSE.txt +55 -0
  69. package/mochawesome-report/assets/roboto-light-webfont.woff +0 -0
  70. package/mochawesome-report/assets/roboto-light-webfont.woff2 +0 -0
  71. package/mochawesome-report/assets/roboto-medium-webfont.woff +0 -0
  72. package/mochawesome-report/assets/roboto-medium-webfont.woff2 +0 -0
  73. package/mochawesome-report/assets/roboto-regular-webfont.woff +0 -0
  74. package/mochawesome-report/assets/roboto-regular-webfont.woff2 +0 -0
  75. package/mochawesome-report/output.html +2 -0
  76. package/output.json +864 -0
  77. package/package.json +43 -0
  78. package/run-parallel-cypress.js +57 -0
  79. package/runAllSteps.js +47 -0
  80. package/syncTestResultsToExcel.js +219 -0
@@ -0,0 +1,98 @@
1
+ import { NavigationPage } from "../../support/pageObjects/navigationPage"
2
+ import { homepage } from "../../support/pageObjects/Homepage"
3
+ import { cartpage } from "../../support/pageObjects/CartPage"
4
+ import { checkout_page } from "../../support/pageObjects/CheckoutPage"
5
+ import { Datacells } from "../../support/interface"
6
+ import { Common_Locators } from "../../support/Locators/Common_Locators"
7
+ import { generateRandomData } from "../../support/pageObjects/GenerateRandomData"
8
+
9
+ let User
10
+ let Bike_light, Bagpack,Price_Item_1, Price_Item_2;
11
+ let checkout_Info_Parameter
12
+ let First_Name = generateRandomData.genraterandomString(5, {includeUppercase:true,includeLowercase :true,includeNumbers :false,includeSymbols : false, excludeSimilar: true });
13
+ let Last_Name = generateRandomData.genraterandomString(5, {includeUppercase:true,includeLowercase :true,includeNumbers :false,includeSymbols : false, excludeSimilar: true });
14
+ let Zip_Code = generateRandomData.genraterandomString(5, {includeUppercase:false,includeLowercase :false,includeNumbers :true,includeSymbols : false, excludeSimilar: true });
15
+
16
+ describe("10_verify_complete_successful_purchase_of_single_item", function () {
17
+
18
+ beforeEach(function () {
19
+ cy.fixture("regression_data/01_regression_data.json").then((data) => {
20
+ this.data = data
21
+ User = this.data.User
22
+ Bike_light = this.data.Bike_light
23
+ Bagpack = this.data.Bagpack
24
+ Price_Item_1 = this.data.Price_Item_1
25
+ Price_Item_2 = this.data.Price_Item_2
26
+
27
+ checkout_Info_Parameter = {
28
+ [Common_Locators.Checkout_page_locators.firstname]: First_Name,
29
+ [Common_Locators.Checkout_page_locators.lastname]: Last_Name,
30
+ [Common_Locators.Checkout_page_locators.zip]: Zip_Code,
31
+ }
32
+
33
+
34
+ }).then(() => {
35
+ cy.clearCookies()
36
+ cy.clearLocalStorage()
37
+ //navigate to the url
38
+ NavigationPage.navigateToUrl()
39
+ //login with valid user
40
+ NavigationPage.loginWithCredentials(User)
41
+ //verify the home is visble
42
+ homepage.verifyHomepage()
43
+ })
44
+ })
45
+
46
+ it("01_verify_complete_successful_purchase_of_single_item", function () {
47
+
48
+ //verify the no item count added to cart
49
+ homepage.verifyCartIconQuantity(0)
50
+ //add Sauce Labs Bike Light in the cart
51
+ homepage.AddingItemtoCart(Bike_light)
52
+ //verify the item count added to cart
53
+ homepage.verifyCartIconQuantity(1)
54
+ cy.wait(1000)
55
+ //add Sauce Labs Backpack in the cart
56
+ homepage.AddingItemtoCart(Bagpack)
57
+ //verify the item count added to cart
58
+ homepage.verifyCartIconQuantity(2)
59
+ //click on the cart icon
60
+ homepage.ClickonCartBtn()
61
+ //verify the product is added in to the cart
62
+ cartpage.verifytheCartpageOpened()
63
+ //verify the item is added to the cart
64
+ cartpage.VerifyAddedItemtoCart(Bike_light)
65
+ //verify the item is added to the cart
66
+ cartpage.VerifyAddedItemtoCart(Bagpack)
67
+ //verify the item count added to cart
68
+ homepage.verifyCartIconQuantity(2)
69
+ //click on checkout button
70
+ cartpage.clickOnCheckoutButton()
71
+ //verify checkout page open
72
+ checkout_page.verifytheCheckoutpageOpened()
73
+ //enter your information for checkout
74
+ checkout_page.enterDetailsforCheckout(checkout_Info_Parameter)
75
+ //verify the item count added to cart
76
+ homepage.verifyCartIconQuantity(2)
77
+ //click on Continue button
78
+ checkout_page.clickOnContinueButton()
79
+ //verify the item is added to the cart
80
+ checkout_page.VerifyProductNameAndPriceInFinalStep(Bike_light, Price_Item_1)
81
+ //verify the item is added to the cart
82
+ checkout_page.VerifyProductNameAndPriceInFinalStep(Bagpack, Price_Item_2)
83
+ //verify total Price to pay after tax
84
+ checkout_page.verifyTotalPriceToPay()
85
+ //click on Finish Button
86
+ checkout_page.clickOnFinishButton()
87
+ //verify Purchase was successful
88
+ checkout_page.VerifyPurchase_Success()
89
+ //verify the item count added to cart
90
+ homepage.verifyCartIconQuantity(0)
91
+
92
+
93
+ })
94
+
95
+ // afterEach(() => {
96
+ // homepage.logout()
97
+ // })
98
+ })
@@ -0,0 +1,98 @@
1
+ import { NavigationPage } from "../../support/pageObjects/navigationPage"
2
+ import { homepage } from "../../support/pageObjects/Homepage"
3
+ import { cartpage } from "../../support/pageObjects/CartPage"
4
+ import { checkout_page } from "../../support/pageObjects/CheckoutPage"
5
+ import { Datacells } from "../../support/interface"
6
+ import { Common_Locators } from "../../support/Locators/Common_Locators"
7
+ import { generateRandomData } from "../../support/pageObjects/GenerateRandomData"
8
+
9
+ let User
10
+ let Bike_light, Bagpack, Price_Item_1, Price_Item_2;
11
+ let checkout_Info_Parameter
12
+ let First_Name = generateRandomData.genraterandomString(5, {includeUppercase:true,includeLowercase :true,includeNumbers :false,includeSymbols : false, excludeSimilar: true });
13
+ let Last_Name = generateRandomData.genraterandomString(5, {includeUppercase:true,includeLowercase :true,includeNumbers :false,includeSymbols : false, excludeSimilar: true });
14
+ let Zip_Code = generateRandomData.genraterandomString(5, {includeUppercase:false,includeLowercase :false,includeNumbers :true,includeSymbols : false, excludeSimilar: true });
15
+
16
+ describe("11_failed", function () {
17
+
18
+ beforeEach(function () {
19
+ cy.fixture("regression_data/01_regression_data.json").then((data) => {
20
+ this.data = data
21
+ User = this.data.User
22
+ Bike_light = this.data.Bike_light
23
+ Bagpack = this.data.Bagpack
24
+ Price_Item_1 = this.data.Price_Item_1
25
+ Price_Item_2 = this.data.Price_Item_2
26
+
27
+ checkout_Info_Parameter = {
28
+ [Common_Locators.Checkout_page_locators.firstname]: First_Name,
29
+ [Common_Locators.Checkout_page_locators.lastname]: Last_Name,
30
+ [Common_Locators.Checkout_page_locators.zip]:Zip_Code,
31
+ }
32
+
33
+
34
+ }).then(() => {
35
+ cy.clearCookies()
36
+ cy.clearLocalStorage()
37
+ //navigate to the url
38
+ NavigationPage.navigateToUrl()
39
+ //login with valid user
40
+ NavigationPage.loginWithCredentials(User)
41
+ //verify the home is visble
42
+ homepage.verifyHomepage()
43
+ })
44
+ })
45
+
46
+ it("02_failed", function () {
47
+
48
+ //verify the no item count added to cart
49
+ homepage.verifyCartIconQuantity(0)
50
+ //add Sauce Labs Bike Light in the cart
51
+ homepage.AddingItemtoCart("123")
52
+ //verify the item count added to cart
53
+ homepage.verifyCartIconQuantity(1)
54
+ cy.wait(1000)
55
+ //add Sauce Labs Backpack in the cart
56
+ homepage.AddingItemtoCart(Bagpack)
57
+ //verify the item count added to cart
58
+ homepage.verifyCartIconQuantity(2)
59
+ //click on the cart icon
60
+ homepage.ClickonCartBtn()
61
+ //verify the product is added in to the cart
62
+ cartpage.verifytheCartpageOpened()
63
+ //verify the item is added to the cart
64
+ cartpage.VerifyAddedItemtoCart(Bike_light)
65
+ //verify the item is added to the cart
66
+ cartpage.VerifyAddedItemtoCart(Bagpack)
67
+ //verify the item count added to cart
68
+ homepage.verifyCartIconQuantity(2)
69
+ //click on checkout button
70
+ cartpage.clickOnCheckoutButton()
71
+ //verify checkout page open
72
+ checkout_page.verifytheCheckoutpageOpened()
73
+ //enter your information for checkout
74
+ checkout_page.enterDetailsforCheckout(checkout_Info_Parameter)
75
+ //verify the item count added to cart
76
+ homepage.verifyCartIconQuantity(2)
77
+ //click on Continue button
78
+ checkout_page.clickOnContinueButton()
79
+ //verify the item is added to the cart
80
+ checkout_page.VerifyProductNameAndPriceInFinalStep(Bike_light, Price_Item_1)
81
+ //verify the item is added to the cart
82
+ checkout_page.VerifyProductNameAndPriceInFinalStep(Bagpack, Price_Item_2)
83
+ //verify total Price to pay after tax
84
+ checkout_page.verifyTotalPriceToPay()
85
+ //click on Finish Button
86
+ checkout_page.clickOnFinishButton()
87
+ //verify Purchase was successful
88
+ checkout_page.VerifyPurchase_Success()
89
+ //verify the item count added to cart
90
+ homepage.verifyCartIconQuantity(0)
91
+
92
+
93
+ })
94
+
95
+ afterEach(() => {
96
+ homepage.logout()
97
+ })
98
+ })
@@ -0,0 +1,32 @@
1
+ import { NavigationPage } from "../../support/pageObjects/navigationPage"
2
+ import { homepage } from "../../support/pageObjects/Homepage"
3
+
4
+ let User
5
+ describe("SMK001_Verify user can log in with valid credentials", function () {
6
+
7
+
8
+ beforeEach(function () {
9
+ cy.fixture("smoke_test_data/SMK001_Verify user can log in with valid credentials.json").then((data) => {
10
+ this.data = data
11
+ User = this.data.User
12
+
13
+ })
14
+ cy.clearCookies()
15
+ cy.clearLocalStorage()
16
+ //navigate to the url
17
+ NavigationPage.navigateToUrl()
18
+
19
+ })
20
+
21
+ it("SMK001_Verify user can log in with valid credentials", function () {
22
+ //login with valid user
23
+ NavigationPage.loginWithCredentials(User)
24
+ //verify the home is visble
25
+ homepage.verifyHomepage()
26
+ //verify the products page is opened and products are displayed
27
+ homepage.verifyProductsPage()
28
+ })
29
+ afterEach(() => {
30
+ homepage.logout()
31
+ })
32
+ })
@@ -0,0 +1,34 @@
1
+ import { NavigationPage } from "../../support/pageObjects/navigationPage"
2
+ import { homepage } from "../../support/pageObjects/Homepage"
3
+
4
+ let User
5
+ describe("SMK002_Verify product list loads after login", function () {
6
+
7
+
8
+ beforeEach(function () {
9
+ cy.fixture("smoke_test_data/SMK002_Verify product list loads after login.json").then((data) => {
10
+ this.data = data
11
+ User = this.data.User
12
+
13
+ })
14
+ cy.clearCookies()
15
+ cy.clearLocalStorage()
16
+ //navigate to the url
17
+ NavigationPage.navigateToUrl()
18
+
19
+ })
20
+
21
+ it("SMK002_Verify product list loads after login", function () {
22
+ //login with valid user
23
+ NavigationPage.loginWithCredentials(User)
24
+ //verify the home is visble
25
+ homepage.verifyHomepage()
26
+ //verify the products page is opened and products are displayed
27
+ homepage.verifyProductsPage()
28
+ //verify minimum 6 products are displayed
29
+ homepage.verifyMinimumProductsDisplayed(this.data.product_length)
30
+ })
31
+ afterEach(() => {
32
+ homepage.logout()
33
+ })
34
+ })
@@ -0,0 +1,49 @@
1
+ import { NavigationPage } from "../../support/pageObjects/navigationPage"
2
+ import { homepage } from "../../support/pageObjects/Homepage"
3
+ import { cartpage } from "../../support/pageObjects/CartPage"
4
+
5
+ let User
6
+ let Bagpack
7
+ describe("SMK003_Verify user can add a product to cart", function () {
8
+
9
+
10
+ beforeEach(function () {
11
+ cy.fixture("smoke_test_data/SMK003_Verify user can add a product to cart.json").then((data) => {
12
+ this.data = data
13
+ User = this.data.User
14
+ Bagpack = this.data.Bagpack
15
+
16
+ }).then(() => {
17
+ cy.clearCookies()
18
+ cy.clearLocalStorage()
19
+ //navigate to the url
20
+ NavigationPage.navigateToUrl()
21
+ //login with valid user
22
+ NavigationPage.loginWithCredentials(User)
23
+ //verify the home is visble
24
+ homepage.verifyHomepage()
25
+ })
26
+ })
27
+
28
+ it("SMK003_Verify user can add a product to cart", function () {
29
+
30
+ //add Sauce Labs Backpack in the cart
31
+ homepage.AddingItemtoCart(Bagpack)
32
+ //verify the item count added to cart
33
+ homepage.verifyCartIconQuantity(1)
34
+ //verify remove item button is visible for the same product
35
+ homepage.verifyRemovefromCartButton(Bagpack)
36
+ //click on the cart icon
37
+ homepage.ClickonCartBtn()
38
+ //verify the product is added in to the cart
39
+ cartpage.verifytheCartpageOpened()
40
+ //verify the item is added to the cart
41
+ cartpage.VerifyAddedItemtoCart(Bagpack)
42
+ //verify the item count added to cart
43
+ homepage.verifyCartIconQuantity(1)
44
+ })
45
+
46
+ afterEach(() => {
47
+ homepage.logout()
48
+ })
49
+ })
@@ -0,0 +1,3 @@
1
+ [
2
+ "cypress\\e2e\\Regression_Suit\\11_testfail.cy.js"
3
+ ]
@@ -0,0 +1,6 @@
1
+ {
2
+ "TestCase_Name":"01_verify_Adding_single_item_to_cart",
3
+ "TestCase_ID":"01",
4
+ "User":"standard_user",
5
+ "Bagpack":"Sauce Labs Backpack"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "TestCase_Name":"02_verify_removing_item_from_the_cart",
3
+ "TestCase_ID":"02",
4
+ "User":"standard_user",
5
+ "Bike_light":"Sauce Labs Bike Light"
6
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "TestCase_Name":"03_verify_updating_of_cart_after_adding_multiple_item",
3
+ "TestCase_ID":"03",
4
+ "User":"standard_user",
5
+ "Bike_light":"Sauce Labs Bike Light",
6
+ "Bagpack":"Sauce Labs Backpack"
7
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "TestCase_Name":"01_verify_complete_successful_purchase_of_single_item",
3
+ "TestCase_ID":"01",
4
+ "User":"standard_user",
5
+ "Bike_light":"Sauce Labs Bike Light",
6
+ "First_Name":"standard",
7
+ "Last_Name":"user",
8
+ "Zip_Code":"123456",
9
+ "Price":"$9.99"
10
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "TestCase_Name": "02_verify_checkout_with_missing_firstname_fails.cy.js",
3
+ "TestCase_ID": "02",
4
+ "User": "standard_user",
5
+ "Bike_light": "Sauce Labs Bike Light",
6
+ "Last_Name": "user",
7
+ "Zip_Code": "123456"
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "TestCase_Name":"03_verify_user_can_cancel_checkout_and redirected_to_cart",
3
+ "TestCase_ID":"03",
4
+ "User":"standard_user",
5
+ "Bike_light":"Sauce Labs Bike Light",
6
+ "First_Name":"standard",
7
+ "Last_Name":"user",
8
+ "Zip_Code":"123456"
9
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "TestCase_Name":"01_Verify_Valid_Login",
3
+ "TestCase_ID":"01",
4
+ "User":"standard_user"
5
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "TestCase_Name":"02_Verify_Invalid_Login_by_wrong_password",
3
+ "TestCase_ID":"02",
4
+ "Invalid_User":"Invalid_user",
5
+ "ErrorText":"Username and password do not match any user in this service"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "TestCase_Name":"03_Verify_Lockout_user_failed_login",
3
+ "TestCase_ID":"03",
4
+ "Locket_out_User":"locked_out_user",
5
+ "ErrorText":"Sorry, this user has been locked out."
6
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "TestCase_Name": "01_Verify_successful_purchase_multiple_items",
3
+ "TestCase_ID": "01",
4
+ "User": "standard_user",
5
+ "Bike_light": "Sauce Labs Bike Light",
6
+ "Bagpack": "Sauce Labs Backpack",
7
+ "First_Name": "standard",
8
+ "Last_Name": "user",
9
+ "Zip_Code": "123456",
10
+ "Price_Item_1": "$9.99",
11
+ "Price_Item_2":"$29.99"
12
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "TestCase_Name":"SMK001_Verify user can log in with valid credentials",
3
+ "TestCase_ID":"SMK001",
4
+ "User":"standard_user"
5
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "TestCase_Name":"SMK002_Verify product list loads after login",
3
+ "TestCase_ID":"SMK002",
4
+ "User":"standard_user",
5
+ "product_length": 6
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "TestCase_Name":"SMK003_Verify user can add a product to cart",
3
+ "TestCase_ID":"SMK003",
4
+ "User":"standard_user",
5
+ "Bagpack":"Sauce Labs Backpack"
6
+ }
@@ -0,0 +1,110 @@
1
+ {
2
+ "stats": {
3
+ "suites": 1,
4
+ "tests": 1,
5
+ "passes": 0,
6
+ "pending": 0,
7
+ "failures": 1,
8
+ "start": "2025-12-19T10:38:23.637Z",
9
+ "end": "2025-12-19T10:38:47.707Z",
10
+ "duration": 24070,
11
+ "testsRegistered": 1,
12
+ "passPercent": 0,
13
+ "pendingPercent": 0,
14
+ "other": 0,
15
+ "hasOther": false,
16
+ "skipped": 0,
17
+ "hasSkipped": false
18
+ },
19
+ "results": [
20
+ {
21
+ "uuid": "b6f737f5-b68d-4d25-b9d5-96e575b602d0",
22
+ "title": "",
23
+ "fullFile": "cypress\\e2e\\Regression_Suit\\11_testfail.cy.js",
24
+ "file": "cypress\\e2e\\Regression_Suit\\11_testfail.cy.js",
25
+ "beforeHooks": [],
26
+ "afterHooks": [],
27
+ "tests": [],
28
+ "suites": [
29
+ {
30
+ "uuid": "39a7b1c2-3b15-4f65-af5b-66504b2f4546",
31
+ "title": "11_failed",
32
+ "fullFile": "",
33
+ "file": "",
34
+ "beforeHooks": [],
35
+ "afterHooks": [],
36
+ "tests": [
37
+ {
38
+ "title": "02_failed",
39
+ "fullTitle": "11_failed 02_failed",
40
+ "timedOut": null,
41
+ "duration": 11381,
42
+ "state": "failed",
43
+ "speed": null,
44
+ "pass": false,
45
+ "fail": true,
46
+ "pending": false,
47
+ "context": null,
48
+ "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);",
49
+ "err": {
50
+ "message": "AssertionError: Timed out retrying after 10000ms: Expected to find element: `[id=\"shopping_cart_container\"] span`, but never found it.",
51
+ "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)",
52
+ "diff": null
53
+ },
54
+ "uuid": "bc660760-c2f0-4692-914b-62db3a076f93",
55
+ "parentUUID": "39a7b1c2-3b15-4f65-af5b-66504b2f4546",
56
+ "isHook": false,
57
+ "skipped": false
58
+ }
59
+ ],
60
+ "suites": [],
61
+ "passes": [],
62
+ "failures": [
63
+ "bc660760-c2f0-4692-914b-62db3a076f93"
64
+ ],
65
+ "pending": [],
66
+ "skipped": [],
67
+ "duration": 11381,
68
+ "root": false,
69
+ "rootEmpty": false,
70
+ "_timeout": 2000
71
+ }
72
+ ],
73
+ "passes": [],
74
+ "failures": [],
75
+ "pending": [],
76
+ "skipped": [],
77
+ "duration": 0,
78
+ "root": true,
79
+ "rootEmpty": true,
80
+ "_timeout": 2000
81
+ }
82
+ ],
83
+ "meta": {
84
+ "mocha": {
85
+ "version": "7.2.0"
86
+ },
87
+ "mochawesome": {
88
+ "options": {
89
+ "quiet": false,
90
+ "reportFilename": "[status]_[datetime]-[name]",
91
+ "saveHtml": false,
92
+ "saveJson": true,
93
+ "consoleReporter": "spec",
94
+ "useInlineDiffs": false,
95
+ "code": true
96
+ },
97
+ "version": "7.1.3"
98
+ },
99
+ "marge": {
100
+ "options": {
101
+ "reportDir": "./cypress/results",
102
+ "reportFilename": "[status]_[datetime]-[name]",
103
+ "overwrite": true,
104
+ "html": false,
105
+ "json": true
106
+ },
107
+ "version": "6.2.0"
108
+ }
109
+ }
110
+ }
@@ -0,0 +1,110 @@
1
+ {
2
+ "stats": {
3
+ "suites": 1,
4
+ "tests": 1,
5
+ "passes": 0,
6
+ "pending": 0,
7
+ "failures": 1,
8
+ "start": "2025-12-19T10:39:11.776Z",
9
+ "end": "2025-12-19T10:39:36.302Z",
10
+ "duration": 24526,
11
+ "testsRegistered": 1,
12
+ "passPercent": 0,
13
+ "pendingPercent": 0,
14
+ "other": 0,
15
+ "hasOther": false,
16
+ "skipped": 0,
17
+ "hasSkipped": false
18
+ },
19
+ "results": [
20
+ {
21
+ "uuid": "350b2e7d-d344-4d50-a0ee-6d22ea615d4d",
22
+ "title": "",
23
+ "fullFile": "cypress\\e2e\\Regression_Suit\\11_testfail.cy.js",
24
+ "file": "cypress\\e2e\\Regression_Suit\\11_testfail.cy.js",
25
+ "beforeHooks": [],
26
+ "afterHooks": [],
27
+ "tests": [],
28
+ "suites": [
29
+ {
30
+ "uuid": "d003bd62-e904-4270-a6e0-f0df30c16f28",
31
+ "title": "11_failed",
32
+ "fullFile": "",
33
+ "file": "",
34
+ "beforeHooks": [],
35
+ "afterHooks": [],
36
+ "tests": [
37
+ {
38
+ "title": "02_failed",
39
+ "fullTitle": "11_failed 02_failed",
40
+ "timedOut": null,
41
+ "duration": 11099,
42
+ "state": "failed",
43
+ "speed": null,
44
+ "pass": false,
45
+ "fail": true,
46
+ "pending": false,
47
+ "context": null,
48
+ "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);",
49
+ "err": {
50
+ "message": "AssertionError: Timed out retrying after 10000ms: Expected to find element: `[id=\"shopping_cart_container\"] span`, but never found it.",
51
+ "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)",
52
+ "diff": null
53
+ },
54
+ "uuid": "8b30c747-d6cf-4b7e-9208-990119ba64ca",
55
+ "parentUUID": "d003bd62-e904-4270-a6e0-f0df30c16f28",
56
+ "isHook": false,
57
+ "skipped": false
58
+ }
59
+ ],
60
+ "suites": [],
61
+ "passes": [],
62
+ "failures": [
63
+ "8b30c747-d6cf-4b7e-9208-990119ba64ca"
64
+ ],
65
+ "pending": [],
66
+ "skipped": [],
67
+ "duration": 11099,
68
+ "root": false,
69
+ "rootEmpty": false,
70
+ "_timeout": 2000
71
+ }
72
+ ],
73
+ "passes": [],
74
+ "failures": [],
75
+ "pending": [],
76
+ "skipped": [],
77
+ "duration": 0,
78
+ "root": true,
79
+ "rootEmpty": true,
80
+ "_timeout": 2000
81
+ }
82
+ ],
83
+ "meta": {
84
+ "mocha": {
85
+ "version": "7.2.0"
86
+ },
87
+ "mochawesome": {
88
+ "options": {
89
+ "quiet": false,
90
+ "reportFilename": "[status]_[datetime]-[name]",
91
+ "saveHtml": false,
92
+ "saveJson": true,
93
+ "consoleReporter": "spec",
94
+ "useInlineDiffs": false,
95
+ "code": true
96
+ },
97
+ "version": "7.1.3"
98
+ },
99
+ "marge": {
100
+ "options": {
101
+ "reportDir": "./cypress/results",
102
+ "reportFilename": "[status]_[datetime]-[name]",
103
+ "overwrite": true,
104
+ "html": false,
105
+ "json": true
106
+ },
107
+ "version": "6.2.0"
108
+ }
109
+ }
110
+ }