0
0
Postmantesting~10 mins

Environment file with Newman in Postman - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to run a Postman collection with Newman using an environment file.

Postman
newman run collection.json -e [1]
Drag options to blanks, or click blank then click option'
Aenvironment.json
Bcollection.json
Cdata.json
Dconfig.json
Attempts:
3 left
💡 Hint
Common Mistakes
Using the collection file instead of the environment file.
Confusing the environment file with data files.
2fill in blank
medium

Complete the command to run Newman with an environment file named 'dev_env.json'.

Postman
newman run collection.json [1] dev_env.json
Drag options to blanks, or click blank then click option'
A-c
B-d
C-e
D-r
Attempts:
3 left
💡 Hint
Common Mistakes
Using -d instead of -e for environment files.
Omitting the flag before the environment file name.
3fill in blank
hard

Fix the error in the Newman command to correctly use the environment file 'test_env.json'.

Postman
newman run collection.json -e [1]
Drag options to blanks, or click blank then click option'
Atest_env.json
Btest_env.yaml
Ctest_env.js
Dtest_env.txt
Attempts:
3 left
💡 Hint
Common Mistakes
Using a JavaScript or text file instead of a JSON file for the environment.
Misspelling the environment file name or extension.
4fill in blank
hard

Fill both blanks to run Newman with a collection file and an environment file, and generate a HTML report.

Postman
newman run [1] -e [2] -r html
Drag options to blanks, or click blank then click option'
Amy_collection.json
Bmy_environment.json
Cdata.json
Dreport.html
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping collection and environment files.
Using data files instead of environment files.
5fill in blank
hard

Fill all three blanks to run Newman with a collection, environment file, and export the run results to a JSON file.

Postman
newman run [1] -e [2] -r json --reporter-json-export [3]
Drag options to blanks, or click blank then click option'
Aapi_collection.json
Bstaging_env.json
Cresults.json
Doutput.json
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect file names or extensions.
Confusing the report export file with the environment or collection files.