0
0
Postmantesting~10 mins

Why CLI execution enables automation in Postman - Test Your Understanding

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 from the command line.

Postman
newman run [1]
Drag options to blanks, or click blank then click option'
Acollection.json
Bpostman
Crun
Dtest
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to specify the collection file name.
Using 'postman' or 'test' instead of the collection file.
2fill in blank
medium

Complete the code to add an environment file in the Newman CLI command.

Postman
newman run collection.json --environment [1]
Drag options to blanks, or click blank then click option'
Aenv.json
Bconfig.json
Cenv
Denvironment
Attempts:
3 left
💡 Hint
Common Mistakes
Using the option name instead of the file name.
Omitting the file extension.
3fill in blank
hard

Fix the error in the Newman CLI command to export the report.

Postman
newman run collection.json --reporters [1] --reporter-html-export report.html
Drag options to blanks, or click blank then click option'
Acli
Bjson
Chtml
Dxml
Attempts:
3 left
💡 Hint
Common Mistakes
Using a reporter that does not support HTML export.
Misspelling the reporter name.
4fill in blank
hard

Fill both blanks to run a collection with a delay between requests and save the output to a file.

Postman
newman run collection.json --delay-request [1] --reporters cli,json --reporter-json-export [2]
Drag options to blanks, or click blank then click option'
A1000
Boutput.json
C500
Dreport.html
Attempts:
3 left
💡 Hint
Common Mistakes
Using a delay value that is too small or missing units.
Saving the report to a file with the wrong extension.
5fill in blank
hard

Fill all three blanks to run a collection with a specific environment, set iteration count, and export an HTML report.

Postman
newman run [1] --environment [2] --iteration-count [3] --reporters html --reporter-html-export report.html
Drag options to blanks, or click blank then click option'
Acollection.json
Benv.json
C5
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up collection and environment file names.
Using iteration counts that are not numbers.