Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Your friend has written an app that gives you convenient way of storing a list of books you won the application use a rest with
Your friend has written an app that gives you convenient way of storing a list of books you won the application use a rest with the backend server to exchange information your task keys to test the PI used by app to make sure it works correctly the server contains only one object class book in ID read only string author string title the communication between backend app is seized into Jason format for convenience and reability an example book to Jason appears as follows open the bracket ID: author: John Smith title: reability of late night deployments and example response contains a least of book is follows open the square bracket open the bracket ID: author John Smith title SRE cloth the flower bracket open the ID: one author: : Jain actor, title: a lie close the flower close the square bracket consistency you cannot order a book with same title and order twice the API conceives of the following pointsAPIbookwhen call with get method return the list of your books when call with put method inserting new book into your list and written newly created book written in error if any occurAPIbookbook IDcall with get method returns single book returns HTTP if the book is book with the given ID does not exist all error response status code of request and contains the object with a single key error that contains the error message example error message follows open the bracket error: fieldauthoris required close the bracket requirements needs to do verify that the APA start with a empty store at the beginning of the test case they should be no bookstore on the server second verify title and author are required put an APIbook error field is required error field is required third one verify the title and author cannot be empty an APA books should return error field field name cannot be empty very for verify that the ID field is we only you should not be able to send a request to APAbooks white verify that you can create a new book via put that book should return in the response get an APIbookbook I should return same book verify that you cannot create a duplicate book an APIbooks should return error another book with similar title and author already exist assessment are to the API might written HTTP internal server error this is never intended and test that encounter it should fail appropriate second point make sure test class extended API test case make sure all your test cases are
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started