0
0
Postmantesting~20 mins

Importing and exporting collections in Postman - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Postman Collection Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Postman Collection Export Formats

Which export format in Postman preserves all request details including scripts, tests, and collection variables for sharing or backup?

AExport as a plain text file listing request names
BExport as a CSV file containing request URLs only
CExport as a JSON file using the Collection v2.1 format
DExport as an HTML report of test results
Attempts:
2 left
💡 Hint

Think about which format keeps the full structure and metadata of your requests.

Predict Output
intermediate
2:00remaining
Result of Importing an Invalid Collection File

What will Postman display if you try to import a collection file with invalid JSON syntax?

AThe collection imports partially with missing requests
BAn error message indicating 'Invalid JSON format' and import fails
CPostman silently ignores errors and imports the file
DPostman converts the file to a valid format automatically
Attempts:
2 left
💡 Hint

Consider how Postman handles files that do not follow JSON rules.

assertion
advanced
2:30remaining
Verifying Exported Collection Contains Collection Variables

After exporting a collection, which assertion confirms that collection variables are included in the exported JSON file?

Postman
const exported = JSON.parse(exportedCollectionJson);
const hasEnvVars = exported.variable && exported.variable.length > 0;
AAssert that <code>hasEnvVars</code> is true
BAssert that <code>exported.requests.length</code> is zero
CAssert that <code>exported.info.name</code> is undefined
DAssert that <code>exported.variable</code> is null
Attempts:
2 left
💡 Hint

Check if the variable property exists and has items.

🔧 Debug
advanced
2:30remaining
Troubleshooting Collection Import Failure

You try to import a Postman collection but receive an error 'Collection schema version not supported'. What is the most likely cause?

AThe collection file is missing the <code>info</code> object
BThe collection contains too many requests
CThe file was exported from a different API testing tool
DThe collection JSON uses an outdated or unsupported schema version
Attempts:
2 left
💡 Hint

Think about compatibility between Postman versions and collection formats.

framework
expert
3:00remaining
Automating Collection Export with Newman CLI

Which Newman CLI command exports a collection run report in JSON format after executing tests?

Anewman run collection.json -r json --reporter-json-export=report.json
Bnewman export collection.json --format json
Cnewman run collection.json --export-json report.json
Dnewman report collection.json --json report.json
Attempts:
2 left
💡 Hint

Look for the correct syntax to run a collection and export a JSON report using Newman.