Recall & Review
beginner
What is the CLI tool used to run Postman collections?
The CLI tool used to run Postman collections is called Newman. It allows you to run and test collections from the command line.
Click to reveal answer
beginner
How do you run a Postman collection using Newman?
You run a collection by typing
newman run <collection-file.json> in the terminal, where <collection-file.json> is your exported Postman collection file.Click to reveal answer
intermediate
Why would you use Newman to run collections instead of the Postman app?
Newman lets you run collections automatically in scripts or CI/CD pipelines, making it easy to test APIs continuously without opening the Postman app.
Click to reveal answer
intermediate
What option do you add to Newman to specify an environment file?
Use
--environment <env-file.json> to specify an environment file when running a collection with Newman.Click to reveal answer
intermediate
How can you generate a report after running a collection with Newman?
You can add reporters like
--reporters cli,json,html to generate different types of reports after the run.Click to reveal answer
Which command runs a Postman collection using Newman?
✗ Incorrect
The correct command is
newman run collection.json to run a collection file.How do you specify an environment file in Newman?
✗ Incorrect
Use
--environment environment.json to specify the environment file.What is a main benefit of running collections via CLI with Newman?
✗ Incorrect
Newman allows automated testing and easy integration with CI/CD pipelines.
Which reporter option generates an HTML report in Newman?
✗ Incorrect
The correct option is
--reporters html to generate an HTML report.What file format must the Postman collection be in to run with Newman?
✗ Incorrect
Postman collections must be exported as JSON files to run with Newman.
Explain how to run a Postman collection from the command line using Newman.
Think about the basic command and useful options.
You got /4 concepts.
Describe why running collections via CLI is useful in software testing.
Consider benefits for continuous testing and automation.
You got /4 concepts.