Project Number Date
Swag Labs Test Report 1 24 Mar 2026, 10:45

Tag Report

Steps Scenarios Features
Tag Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
@ui 21 0 0 0 0 21 5 0 5 6.813 Passed
Feature: Login Page
1.017
Before com.swaglabs.ui.Hooks.setUp(io.cucumber.java.Scenario) 4.078
Given I am on the login page 0.526
When I login with username "standard_user" and password "secret_sauce" 0.429
Then I should see "Products" 0.061
After com.swaglabs.ui.Hooks.tearDown(io.cucumber.java.Scenario) 0.691
Feature: Login Page
0.926
Before com.swaglabs.ui.Hooks.setUp(io.cucumber.java.Scenario) 1.432
Given I am on the login page 0.394
When I login with username "locked_out_user" and password "secret_sauce" 0.453
Then I should see "Epic sadface: Sorry, this user has been locked out." 0.078
After com.swaglabs.ui.Hooks.tearDown(io.cucumber.java.Scenario) 0.684
Feature: Login Page
0.970
Before com.swaglabs.ui.Hooks.setUp(io.cucumber.java.Scenario) 1.359
Given I am on the login page 0.463
When I login with username "standard_user" and password "wrong_password" 0.410
Then I should see "Epic sadface: Username and password do not match any user in this service" 0.096
After com.swaglabs.ui.Hooks.tearDown(io.cucumber.java.Scenario) 30.002
Feature: Purchase
1.858
Before com.swaglabs.ui.Hooks.setUp(io.cucumber.java.Scenario) 1.304
Given I am logged in with username "standard_user" and password "secret_sauce" 0.908
When I add the following products to the cart: 0.323
product quantity price
Sauce Labs Backpack 1 $29.99

[Captured products] { "Sauce Labs Backpack" : { "name" : "Sauce Labs Backpack", "description" : "carry.allTheThings() with the sleek, streamlined Sly Pack that melds uncompromising style with unequaled laptop and tablet protection.", "price" : "$29.99", "quantity" : "1" } }

And I proceed to checkout with first name "Foo" last name "Bar" and postal code "50001" 0.410

[Cart items] { "Sauce Labs Backpack" : { "name" : "Sauce Labs Backpack", "description" : "carry.allTheThings() with the sleek, streamlined Sly Pack that melds uncompromising style with unequaled laptop and tablet protection.", "price" : "$29.99", "quantity" : "1" } }

Then the order overview should match the cart items 0.035

[Order items] { "Sauce Labs Backpack" : { "name" : "Sauce Labs Backpack", "description" : "carry.allTheThings() with the sleek, streamlined Sly Pack that melds uncompromising style with unequaled laptop and tablet protection.", "price" : "$29.99", "quantity" : "1" } }

And the order total should equal item total plus tax 0.028

[Price summary] { "itemTotal" : "Item total: $29.99", "tax" : "Tax: $2.40", "total" : "Total: $32.39" }

And I complete the purchase and see the confirmation message 0.151
After com.swaglabs.ui.Hooks.tearDown(io.cucumber.java.Scenario) 0.665
Feature: Purchase
2.039
Before com.swaglabs.ui.Hooks.setUp(io.cucumber.java.Scenario) 1.302
Given I am logged in with username "standard_user" and password "secret_sauce" 0.891
When I add the following products to the cart: 0.427
product quantity price
Sauce Labs Backpack 1 $29.99
Sauce Labs Bike Light 1 $9.99
Sauce Labs Bolt T-Shirt 1 $15.99

[Captured products] { "Sauce Labs Backpack" : { "name" : "Sauce Labs Backpack", "description" : "carry.allTheThings() with the sleek, streamlined Sly Pack that melds uncompromising style with unequaled laptop and tablet protection.", "price" : "$29.99", "quantity" : "1" }, "Sauce Labs Bike Light" : { "name" : "Sauce Labs Bike Light", "description" : "A red light isn't the desired state in testing but it sure helps when riding your bike at night. Water-resistant with 3 lighting modes, 1 AAA battery included.", "price" : "$9.99", "quantity" : "1" }, "Sauce Labs Bolt T-Shirt" : { "name" : "Sauce Labs Bolt T-Shirt", "description" : "Get your testing superhero on with the Sauce Labs bolt T-shirt. From American Apparel, 100% ringspun combed cotton, heather gray with red bolt.", "price" : "$15.99", "quantity" : "1" } }

And I proceed to checkout with first name "Foo" last name "Bar" and postal code "50001" 0.458

[Cart items] { "Sauce Labs Backpack" : { "name" : "Sauce Labs Backpack", "description" : "carry.allTheThings() with the sleek, streamlined Sly Pack that melds uncompromising style with unequaled laptop and tablet protection.", "price" : "$29.99", "quantity" : "1" }, "Sauce Labs Bike Light" : { "name" : "Sauce Labs Bike Light", "description" : "A red light isn't the desired state in testing but it sure helps when riding your bike at night. Water-resistant with 3 lighting modes, 1 AAA battery included.", "price" : "$9.99", "quantity" : "1" }, "Sauce Labs Bolt T-Shirt" : { "name" : "Sauce Labs Bolt T-Shirt", "description" : "Get your testing superhero on with the Sauce Labs bolt T-shirt. From American Apparel, 100% ringspun combed cotton, heather gray with red bolt.", "price" : "$15.99", "quantity" : "1" } }

Then the order overview should match the cart items 0.090

[Order items] { "Sauce Labs Backpack" : { "name" : "Sauce Labs Backpack", "description" : "carry.allTheThings() with the sleek, streamlined Sly Pack that melds uncompromising style with unequaled laptop and tablet protection.", "price" : "$29.99", "quantity" : "1" }, "Sauce Labs Bike Light" : { "name" : "Sauce Labs Bike Light", "description" : "A red light isn't the desired state in testing but it sure helps when riding your bike at night. Water-resistant with 3 lighting modes, 1 AAA battery included.", "price" : "$9.99", "quantity" : "1" }, "Sauce Labs Bolt T-Shirt" : { "name" : "Sauce Labs Bolt T-Shirt", "description" : "Get your testing superhero on with the Sauce Labs bolt T-shirt. From American Apparel, 100% ringspun combed cotton, heather gray with red bolt.", "price" : "$15.99", "quantity" : "1" } }

And the order total should equal item total plus tax 0.026

[Price summary] { "itemTotal" : "Item total: $55.97", "tax" : "Tax: $4.48", "total" : "Total: $60.45" }

And I complete the purchase and see the confirmation message 0.143
After com.swaglabs.ui.Hooks.tearDown(io.cucumber.java.Scenario) 0.669