Project Number Date
Swag Labs Test Report 1 05 Apr 2026, 00:28

Tag Report

Steps Scenarios Features
Tag Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
@regression 31 0 0 0 0 31 8 0 8 5.994 Passed
Feature: Login Page
0.763
Before com.swaglabs.ui.Hooks.setUp(io.cucumber.java.Scenario) 5.983
Given I am on the login page 0.349
When I login with username "standard_user" and password "secret_sauce" 0.362
Then I should see "Products" 0.051
After com.swaglabs.ui.Hooks.tearDown(io.cucumber.java.Scenario) 0.073
Feature: Login Page
0.595
Before com.swaglabs.ui.Hooks.setUp(io.cucumber.java.Scenario) 0.351
Given I am on the login page 0.259
When I login with username "locked_out_user" and password "secret_sauce" 0.301
Then I should see "Epic sadface: Sorry, this user has been locked out." 0.034
After com.swaglabs.ui.Hooks.tearDown(io.cucumber.java.Scenario) 0.069
Feature: Login Page
0.602
Before com.swaglabs.ui.Hooks.setUp(io.cucumber.java.Scenario) 0.263
Given I am on the login page 0.258
When I login with username "standard_user" and password "wrong_password" 0.312
Then I should see "Epic sadface: Username and password do not match any user in this service" 0.031
After com.swaglabs.ui.Hooks.tearDown(io.cucumber.java.Scenario) 0.068
Feature: Users API
0.061
Before com.swaglabs.api.ApiHooks.setUp(io.cucumber.java.Scenario) 0.000
When I send GET "/users/6" 0.037
Then the response status should be 200 0.000
And the response field "address.street" should be "Norberto Crossing" 0.013
And the response field "address.city" should be "South Christy" 0.010
After com.swaglabs.api.ApiHooks.tearDown(io.cucumber.java.Scenario) 0.001

Response status : 200

Response body : { "id": 6, "name": "Mrs. Dennis Schulist", "username": "Leopoldo_Corkery", "email": "Karley_Dach@jasper.info", "address": { "street": "Norberto Crossing", "suite": "Apt. 950", "city": "South Christy", "zipcode": "23505-1337", "geo": { "lat": "-71.4197", "lng": "71.7478" } }, "phone": "1-477-935-8478 x6430", "website": "ola.org", "company": { "name": "Considine-Lockman", "catchPhrase": "Synchronised bottom-line interface", "bs": "e-enable innovative applications" } }

Feature: Comments API
1.117
Before com.swaglabs.api.ApiHooks.setUp(io.cucumber.java.Scenario) 0.317
When I send GET "/comments/3" 0.679
Then the response status should be 200 0.003
And the response field "name" should be "odio adipisci rerum aut animi" 0.423
And the response field "email" should be "Nikita@garfield.biz" 0.011
After com.swaglabs.api.ApiHooks.tearDown(io.cucumber.java.Scenario) 0.014

Response status : 200

Response body : { "postId": 1, "id": 3, "name": "odio adipisci rerum aut animi", "email": "Nikita@garfield.biz", "body": "quia molestiae reprehenderit quasi aspernatur\naut expedita occaecati aliquam eveniet laudantium\nomnis quibusdam delectus saepe quia accusamus maiores nam est\ncum et ducimus et vero voluptates excepturi deleniti ratione" }

Feature: Comments API
0.291
Before com.swaglabs.api.ApiHooks.setUp(io.cucumber.java.Scenario) 0.000
Given I have the following request body: 0.000
posId name email
1 Melissa abc@gmail.com
When I send POST "/comments" 0.280
Then the response status should be 201 0.000
And the response field "id" should be "501" 0.011
After com.swaglabs.api.ApiHooks.tearDown(io.cucumber.java.Scenario) 0.000

Response status : 201

Response body : { "name": "Melissa", "posId": "1", "email": "abc@gmail.com", "id": 501 }

Feature: Purchase
1.133
Before com.swaglabs.ui.Hooks.setUp(io.cucumber.java.Scenario) 0.809
When I add the following products to the cart: 0.263
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.611

[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.052

[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.042

[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.161
After com.swaglabs.ui.Hooks.tearDown(io.cucumber.java.Scenario) 0.068
Feature: Purchase
1.429
Before com.swaglabs.ui.Hooks.setUp(io.cucumber.java.Scenario) 0.845
When I add the following products to the cart: 0.412
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.682

[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.134

[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.040

[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.158
After com.swaglabs.ui.Hooks.tearDown(io.cucumber.java.Scenario) 0.067