Install NewMan using powershell in Windows
npm install -g newman
Setup an environment variable in Postman
npm install -g newman-reporter-htmlextra
Download The Collection to Some location for which you want to run in NewMan
Sample
newman run APIPlayground.postman_collection.json -e .\local.postman_environment.json -- delay-request 1000 -r htmlextra
Here e is for enviornment and delay is for wait time for requests
-r htmlextra--> for reporting
APIPlayground.postman_collection.json(Name of The Collection you downloaded)
You will get report generated
Allure Report
npm install -g newman-reporter-allure
Note : Make sure Allure is installed in machine
Run
newman run APITesting.postman_collection.json -e muffin.postman_environment.json -r allure
Run
allure serve
or Run below to generate html report directly
allure generate --clean
No comments:
Post a Comment