Skip to content

ahmedarif123/API-Automation-Postman

Repository files navigation

Postman_Book_API_Automation

This repo contains Demo Book API Automation using postman and newman

Technology:

  • Tools: Postman,newman
  • Build tool: npm
  • Language: Javascript
  • Report: newman-reporter-htmlextra
  • Dependency/Packages:{ "newman": "^5.3.2", "newman-reporter-htmlextra": "^1.22.7" }
  • IDE: Visual Studio Code

Requirement:

  1. Automate API Status
  2. Automate List of books API
  3. Automate Get a single book API
  4. Automate API Authentication
  5. Automate Submit an order API
  6. Automate Get all orders API
  7. Automate Get an order API
  8. Automate Update an order API
  9. Automate Delete an order API

Prerequisite:


Run the Automation Script:

  1. Open cmd to the project folder using VS Code
  2. Type "npm install" to install all the dependency
  3. Type this command:"npm test"
  4. After Complete the test execution Report will generate to Report Folder
  5. Run the report.html file using any live server extension(e.g. Live Server) to view the html report

Test Report view from Command line:

Screenshot from 2022-03-29 08-23-06

HTML Report view from browser:

Screenshot from 2022-03-28 23-20-36 Screenshot from 2022-03-28 23-20-45 Screenshot from 2022-03-28 23-20-54 Screenshot from 2022-03-28 23-20-58

To See the Demo Video click here


Github Action Related Info:

  1. I have added github actions in this project to test my script in CI way
  2. To See the Demo Video click here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages