Complete the code to run a Postman collection from the command line.
newman run [1]The newman run command requires the collection file name to execute the tests.
Complete the code to add an environment file in the Newman CLI command.
newman run collection.json --environment [1]The environment file is specified by its filename, usually ending with .json.
Fix the error in the Newman CLI command to export the report.
newman run collection.json --reporters [1] --reporter-html-export report.htmlThe html reporter is needed to export an HTML report file.
Fill both blanks to run a collection with a delay between requests and save the output to a file.
newman run collection.json --delay-request [1] --reporters cli,json --reporter-json-export [2]
The delay is set in milliseconds (1000 ms = 1 second), and the JSON report is saved to output.json.
Fill all three blanks to run a collection with a specific environment, set iteration count, and export an HTML report.
newman run [1] --environment [2] --iteration-count [3] --reporters html --reporter-html-export report.html
The collection file is collection.json, environment file is env.json, and the iteration count is set to 5.