Answered step by step
Verified Expert Solution
Link Copied!

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:0 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:0 author John Smith title SRE101 cloth the flower bracket open the ID: one author: 1: 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 points/API/book/when 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 occur/API/book/book ID/call with get method returns single book returns HTTP40404 if the book is book with the given ID does not exist all error response status code of 8400 request and contains the object with a single key error that contains the error message example error message follows open the bracket error: field/author/is 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 API/book 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 APA/books5 white verify that you can create a new book via put that book should return in the response get an API/book/book I should return same book verify that you cannot create a duplicate book an API/books should return error another book with similar title and author already exist assessment are to the API might written HTTP500 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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions