Complete the code to run a Postman collection with Newman using an environment file.
newman run collection.json -e [1]The -e option specifies the environment file to use with Newman.
Complete the command to run Newman with an environment file named 'dev_env.json'.
newman run collection.json [1] dev_env.json-d instead of -e for environment files.The -e flag is used to specify the environment file in Newman commands.
Fix the error in the Newman command to correctly use the environment file 'test_env.json'.
newman run collection.json -e [1]Newman requires the environment file to be in JSON format, so test_env.json is correct.
Fill both blanks to run Newman with a collection file and an environment file, and generate a HTML report.
newman run [1] -e [2] -r html
The collection file is specified first, then the environment file with -e. The -r html flag generates an HTML report.
Fill all three blanks to run Newman with a collection, environment file, and export the run results to a JSON file.
newman run [1] -e [2] -r json --reporter-json-export [3]
The collection file is api_collection.json, the environment file is staging_env.json, and the JSON report is saved to results.json.