Feature
Book CRUD operations
As an API consumer
I want to create, read, update, and delete books
So that I can manage book data
Scenario
Verify if a book successfully added using add book service API
Given
Add Book payload
736ms
When
Send a POST HTTP request
2s 124ms
Then
Receive a success response with status code "200"
014ms
And
"title" in response body is "Beginning Python"
385ms
Scenario
Verify if a book successfully updated using update book service API
Given
Add Update Book payload and Id
010ms
When
Send a PUT HTTP request with 5
4s 120ms
Then
Receive a success response with status code "200"
000ms
Scenario Outline
Send a valid request to get book details
Given
Send Book with 1
001ms
When
Send a GET HTTP request with 1
2s 094ms
Then
Receive a success response with status code "200"
000ms
And
"title" in response body is "Walden"
010ms
Scenario Outline
Send a valid request to get book details
Given
Send Book with 2
001ms
When
Send a GET HTTP request with 2
2s 006ms
Then
Receive a success response with status code "200"
000ms
And
"title" in response body is "Self-Reliance and Other Essays"
008ms
Scenario Outline
Verify if a book successfully deleted using delete book service API
Given
Send Book with 3
001ms
When
Send a DELETE HTTP request with 3
2s 084ms
Then
Receive a success response with status code "200"
000ms
And
"message" in response body is "Book with id 3 is deleted"
001ms
Scenario Outline
Verify if a book successfully deleted using delete book service API
Given
Send Book with 4
001ms
When
Send a DELETE HTTP request with 4
1s 840ms
Then
Receive a success response with status code "200"
000ms
And
"message" in response body is "Book with id 4 is deleted"
000ms