Skip to content

ntdsrd/restful-booker-postman

Repository files navigation

Restful-booker (API test using Postman and newman reports generated)

Reports Preview

htmlextra report

htmlextra

allure report

allure

Open project with Postman

Open collection restful-booker.postman_collection.json and environment prod.postman_environment.json by Postman to run the test. Click on each request and go to Tests to see test scripts

How to use

Clone project

git clone https://github.com/ntdsrd/restful-booker-postman.git

Dependencies: npm, newman, newman-reporter-htmlextra, newman-reporter-allure, allure-commandline

Install npm (depending on your OS, check npm if it exists: npm -v)

Install newman

npm install -g newman

htmlextra report

Install newman-reporter-htmlextra

npm install -g newman-reporter-htmlextra

Generate htmlextra report

newman run <collection> -e <environment> -r htmlextra --reporter-htmlextra-export <path>

Path: filename -> htmlextra/report.html

Open htmlextra/report.html on your browser

allure report

Install newman-reporter-allure

npm install -g newman-reporter-allure

Generate allure results

newman run <collection> -e <environment> -r allure --reporter-allure-export <path>

Path: folder contains allure results -> allure/allure-results

Install allure-commandline

cd <path-of-allure-results>
npm install -g allure-commandline

Generate allure report

allure generate <path>

Path: folder contains allure report -> allure-report

If your browser is not opened, click on the link as Server started at <http://192.168.1.../>. Press <Ctrl+C> to exit

About

Restful-booker - API test using Postman and newman reports generated

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published