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

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
Comments API 8 0 0 0 0 8 2 0 2 1.401 Passed
Tags: @api
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" }

0.136
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.125
Then the response status should be 201 0.000
And the response field "id" should be "501" 0.010
After com.swaglabs.api.ApiHooks.tearDown(io.cucumber.java.Scenario) 0.001

Response status : 201

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