0
0
Postmantesting~10 mins

Running collections via CLI 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 using Newman CLI.

Postman
newman run [1].json
Drag options to blanks, or click blank then click option'
Arun
Bcollection
Ctest
Dscript
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' or 'test' instead of the collection file name.
Omitting the .json extension.
2fill in blank
medium

Complete the command to specify an environment file when running a collection with Newman.

Postman
newman run collection.json --environment [1].json
Drag options to blanks, or click blank then click option'
Aenv
Bdata
Cconfig
Dsettings
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect file names like 'data.json' or 'config.json'.
Forgetting the --environment flag.
3fill in blank
hard

Fix the error in the command to export the run report in JSON format.

Postman
newman run collection.json --reporters json --reporter-json-export [1]
Drag options to blanks, or click blank then click option'
Areport.json
Breport.txt
Creport.csv
Dreport.html
Attempts:
3 left
💡 Hint
Common Mistakes
Using a .txt or .csv extension which does not match the JSON reporter.
Omitting the --reporter-json-export flag.
4fill in blank
hard

Fill both blanks to run a collection with a delay of 500ms between requests and disable SSL verification.

Postman
newman run collection.json --delay-request [1] --insecure [2]
Drag options to blanks, or click blank then click option'
A500
Btrue
Cfalse
D1000
Attempts:
3 left
💡 Hint
Common Mistakes
Using delay values like 1000 instead of 500.
Setting --insecure to false or omitting it.
5fill in blank
hard

Fill all three blanks to run a collection with a data file, specify environment, and export an HTML report.

Postman
newman run [1].json --environment [2].json --iteration-data [3].json --reporters html --reporter-html-export report.html
Drag options to blanks, or click blank then click option'
Acollection
Benv
Cdata
Dconfig
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up file names or extensions.
Omitting the --iteration-data flag.