Skip to content

acharjeeauntor/Postman_Book_API_Automation

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

Docker Related Info:

  1. I have created a docker image to make the test script run easily. If the docker is installed on the user's Pc then the user can run this script very easy way without setup the node environment. Docker image will handle all the environment setup. This docker image will run the API script.This docker image was tested in Linux & Windows OS.

Docker image: https://hub.docker.com/r/auntoracharja/postman-book-api-automation
To See the Demo Video click here


Jenkins Related Info:

I have intregrate this automation project with the jenkins through the github repository.
To See the Demo Video click here

About

This repo contains Demo Book API Automation using postman and newman

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages