Skip to content

In this repository there are API test automation using Postman & Newman for Book Store API web-service. This testing to ensure the APIs are working functioning as expected.

Notifications You must be signed in to change notification settings

ehasan101/BookStoreAPI-API_Testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

API_Testing-Project


API Testing for Book Store API with Postman

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.

How to run this project!

  1. Install Postman.
  2. Install Node.js.
  3. Download Project file.
  4. Now Import collection & environment file into Postman:
    file > import > choose the method > press 'import'
  5. Run Desired API request.

Run on cmd

  1. Open cmd on project folder or move to project folder cd Downloads/project_file
  2. Run the follwing command Install newman npm install -g newman
  3. Now newman run "Book Store API.postman_collection.json" -e BookStoreAPI.postman_environment.json
  4. If want to export test results
    first install them
    npm install -g newman-reporter-html
    and npm install -g newman-reporter-htmlextra
  5. Now run follwing command for report
    newman run "Book Store API.postman_collection.json" -e BookStoreAPI.postman_environment.json -r cli,htmlextra

HTTP Status Codes

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

http_status_code

Working Scenarios & What I have done in this Testing!

  • 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]

Test Report with Newman :

A Newman report has been generated for the API test

  1. HTML Report Link

  2. Snapshots:

  • Summary Report Summary_1 Summary-2
  • Total Requests Total
  • Failed Requests Failed

⚠️ if you face any type of image broken/missing issue, please refresh this web page again.

#Happy_Testing


About

In this repository there are API test automation using Postman & Newman for Book Store API web-service. This testing to ensure the APIs are working functioning as expected.

Topics

Resources

Stars

Watchers

Forks