Run a Postman collection in CI with Newman
QuizMediumAsked in: Capgemini, Infosys
Which command runs shop.postman_collection.json against the staging environment and writes a JUnit report (a test result file in a common format) for the CI server (the server that runs tests automatically)?
- newman run shop.postman_collection.json -e staging.postman_environment.json -r cli,junit --reporter-junit-export results/newman.xml
- postman start shop.postman_collection.json --env staging
- newman test shop.postman_collection.json --junit
- npm run shop.postman_collection.json
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.