Skip to content

SergePletnev/rest-web-services-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy

$ npm install

Usage

Run tests:

$ npm test

View report:

$ npm run report

Positive tests:

  • Create - POST request. Expected response status code: 201, message: Created.

  • Read - GET request. Expected response status code: 200, message: OK.

  • Update - PUT request. Expected response status code: 200, message: OK.
    PATCH request. Expected response status code: 200, message: OK.

  • Delete - DELETE request. Expected response status code: 200, message: OK.

Negative tests:

  • Wrong URI tests. Expected response status code: 404, message: Not Found.

  • Incorrect body (empty, incorrect/missing parameters). Expected response status code: 400, message: Bad Request.

  • Creating item over existing. Expected response status code: 409, message: Conflict.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published