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
@smoke 17 0 0 0 0 17 4 0 4 4.214 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: Users API
0.073
Before com.swaglabs.api.ApiHooks.setUp(io.cucumber.java.Scenario) 0.000
When I send GET "/users/6" 0.049
Then the response status should be 200 0.000
And the response field "address.street" should be "Norberto Crossing" 0.011
And the response field "address.city" should be "South Christy" 0.011
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.264
Before com.swaglabs.api.ApiHooks.setUp(io.cucumber.java.Scenario) 0.286
When I send GET "/comments/3" 0.805
Then the response status should be 200 0.002
And the response field "name" should be "odio adipisci rerum aut animi" 0.445
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: 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