This project is on API testing with Postman for the Book Store API web-service. It's evaluating the APIs are working functionality and usability as expected.
- Install Postman.
- Install Node.js.
- Download Project file.
- Now Import collection & environment file into Postman:
file > import > choose the method > press 'import'
- Run Desired API request.
Run on cmd
- Open cmd on project folder or move to project folder
cd Downloads/project_file
- Run the follwing command
Install newman
npm install -g newman
- Now
newman run "Book Store API.postman_collection.json" -e BookStoreAPI.postman_environment.json
- If want to export test results
first install them
npm install -g newman-reporter-html
andnpm install -g newman-reporter-htmlextra
- Now run follwing command for report
newman run "Book Store API.postman_collection.json" -e BookStoreAPI.postman_environment.json -r cli,htmlextra
HTTP status code are 3 digit number which a server response to a browser’s request. Those are divided into 5 categories.
1xx - Informational Purpose
2xx - Success
3xx - Redirection
4xx - Client Errors
5xx - Server Errors
- Accounts
- Create User [POST method]
- Generate Token [POST method]
- Authorized [POST method]
- BookStoreManagement
- Book Assign to user [POST method]
- Update Book [PUT method]
- Get Current Book [GET method]
- Get User-Book [GET method]
- Delete Book [DEL method]
- Delete User [DEL method]
[Positive and Negative case both are created]
A Newman report has been generated for the API test
-
HTML Report Link
-
Snapshots:
refresh this web page again. |
---|