NewMan Collection Runner and Allure report - Bug Reaper

                  Bug Reaper

Lean about Automation Testing,Selenium WebDriver,RestAssured,Appium,Jenkins,JAVA,API Automation,TestNG,Maven, Rest API, SOAP API,Linux,Maven,Security Testing,Interview Questions

Thursday 22 December 2022

NewMan Collection Runner and Allure report

Install NewMan using powershell in Windows

npm install -g newman


Setup an environment variable in Postman



Download Enviornment

\


Download New Man reporting 

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