All Scenarios

15

Passed Scenarios

15

Failed Scenarios

0
As a QA Engineer
I want to test REST API endpoints
So that I can validate backend functionality

Given the API base URL is "https://jsonplaceholder.typicode.com" 1ms

When I send a GET request to "/users" 141ms

Then the response status code should be 200 1ms

And the response should be a JSON array 1ms

And the response array should have 10 items < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" 1ms

When I send a GET request to "/users/1" 27ms

Then the response status code should be 200 < 1ms

And the response should contain the following fields: 1ms
field
id
name
username
email

And the response field "id" should be 1 < 1ms

And the response field "name" should be "Leanne Graham" < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" 1ms

When I send a POST request to "/users" with body: 58ms

{ "name": "John Doe", "username": "johndoe", "email": "john.doe@example.com" }

Then the response status code should be 201 < 1ms

And the response field "name" should be "John Doe" < 1ms

And the response field "username" should be "johndoe" < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" 1ms

When I send a PUT request to "/users/1" with body: 136ms

{ "id": 1, "name": "Updated Name", "username": "updateduser", "email": "updated@example.com" }

Then the response status code should be 200 < 1ms

And the response field "name" should be "Updated Name" < 1ms

And the response field "username" should be "updateduser" < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" < 1ms

When I send a PATCH request to "/users/1" with body: 58ms

{ "email": "newemail@example.com" }

Then the response status code should be 200 < 1ms

And the response field "email" should be "newemail@example.com" < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" 1ms

When I send a DELETE request to "/users/1" 60ms

Then the response status code should be 200 < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" < 1ms

When I send a GET request to "/users/1/posts" 26ms

Then the response status code should be 200 < 1ms

And the response should be a JSON array < 1ms

And all items should have field "userId" with value 1 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" < 1ms

When I send a GET request to "/users" 26ms

Then the response status code should be 200 < 1ms

And the response time should be less than 2000 milliseconds < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" < 1ms

When I send a GET request to "/users/1" 26ms

Then the response status code should be 200 < 1ms

And the response header "content-type" should contain "application/json" < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" < 1ms

When I send a GET request to "/users/9999" 27ms

Then the response status code should be 404 < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" < 1ms

When I send a GET request to "/users/1" 26ms

Then the response status code should be 200 < 1ms

And the response field "id" should be 1 < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" < 1ms

When I send a GET request to "/users/2" 28ms

Then the response status code should be 200 < 1ms

And the response field "id" should be 2 < 1ms

Given the API base URL is "https://jsonplaceholder.typicode.com" < 1ms

When I send a GET request to "/users/3" 27ms

Then the response status code should be 200 < 1ms

And the response field "id" should be 3 < 1ms

Given I navigate to "https://www.vineetkr.com" 109ms

When I wait for the page to load 498ms

Then the page title should contain "Technology Portfolio" 4ms

Given I navigate to "https://www.vineetkr.com" 98ms

When I click on the "About Me" link 126ms

Then I should see the documentation page 501ms

And the URL should contain "about" < 1ms