0
0
Postmantesting~10 mins

Data 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 a data file.

Postman
newman run collection.json --[1] data.json
Drag options to blanks, or click blank then click option'
Adata
Bfile
Csource
Dinput
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--file' instead of '--data' causes Newman to fail to load the data file.
Using '--input' or '--source' are not valid flags for Newman.
2fill in blank
medium

Complete the code to specify the environment file when running Newman with a data file.

Postman
newman run collection.json --data data.json --[1] environment.json
Drag options to blanks, or click blank then click option'
Aconfig
Benvironment
Cenv
Dsettings
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--environment' instead of '--env' causes Newman to not recognize the environment file.
Using '--config' or '--settings' are invalid flags.
3fill in blank
hard

Fix the error in the Newman command to correctly use a CSV data file.

Postman
newman run collection.json --data [1]
Drag options to blanks, or click blank then click option'
Adata.csv
Bdata.json
Cdata.txt
Ddata.xml
Attempts:
3 left
💡 Hint
Common Mistakes
Using a JSON file when the data is actually CSV causes errors.
Using unsupported file types like .txt or .xml causes Newman to fail.
4fill in blank
hard

Fill both blanks to run Newman with a JSON data file and export the report to a file.

Postman
newman run collection.json --[1] data.json --reporters cli,json --[2] report.json
Drag options to blanks, or click blank then click option'
Adata
Bexport
Creport-export
Dreporter-json-export
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--export' instead of '--reporter-json-export' causes the report not to save.
Using '--report-export' is invalid; the correct flag is '--reporter-json-export'.
5fill in blank
hard

Fill all three blanks to run Newman with a CSV data file, specify an environment, and export the report.

Postman
newman run collection.json --[1] data.csv --[2] env.json --reporters cli,json --[3] output.json
Drag options to blanks, or click blank then click option'
Adata
Benv
Creporter-json-export
Denvironment
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--environment' instead of '--env' causes errors.
Using '--export' instead of '--reporter-json-export' prevents report saving.
Using wrong file extensions for data or environment files causes failures.