0
0
Postmantesting~20 mins

Folder hierarchy in Postman - Practice Problems & Coding Challenges

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

In Postman, how does organizing requests into folders within a collection help in test management?

AIt automatically runs all requests in parallel regardless of folder structure.
BIt groups related requests together, making tests easier to find and run in batches.
CIt encrypts the requests inside folders for security.
DIt prevents requests inside folders from being exported.
Attempts:
2 left
💡 Hint

Think about how grouping helps in organizing and running tests.

Predict Output
intermediate
1:30remaining
Output of Running Folder in Postman Collection

Given a Postman collection with two folders: Login with 3 requests and Profile with 2 requests, what is the total number of requests run when you execute the Profile folder?

A5
B3
C2
D0
Attempts:
2 left
💡 Hint

Only requests inside the selected folder run.

locator
advanced
2:00remaining
Best Locator for a Folder in Postman Collection JSON

In the exported Postman collection JSON, which key best identifies a folder containing requests?

A"item" key with an array of requests or subfolders
B"info" key with collection metadata
C"event" key with test scripts
D"auth" key with authentication details
Attempts:
2 left
💡 Hint

Folders contain requests or other folders inside an array.

assertion
advanced
2:30remaining
Assertion on Folder Request Count in Postman Tests

You want to write a test script to assert that a folder named Orders contains exactly 4 requests. Which assertion is correct in Postman test scripts?

Postman
const ordersFolder = pm.collection.items.find(item => item.name === 'Orders');
const requestCount = ordersFolder ? ordersFolder.items.length : 0;
// Which assertion below is correct?
Apm.test('Orders folder has 4 requests', () => pm.expect(requestCount).to.eql(4));
Bpm.test('Orders folder has 4 requests', () => pm.expect(requestCount).to.be.lessThan(4));
Cpm.test('Orders folder has 4 requests', () => pm.expect(requestCount).to.be.greaterThan(4));
Dpm.test('Orders folder has 4 requests', () => pm.expect(requestCount).to.be.undefined);
Attempts:
2 left
💡 Hint

Check for exact equality of the count.

🔧 Debug
expert
3:00remaining
Debugging Folder Execution Order in Postman Runner

You have a collection with folders A and B. Folder A has 2 requests, Folder B has 3 requests. You run the entire collection in Postman Runner. You notice requests from Folder B run before Folder A. What is the most likely cause?

ARequests inside folders run before folders themselves, causing B to run first.
BFolders are executed in alphabetical order by default, so Folder A runs before B.
CPostman Runner runs folders randomly each time to balance load.
DFolders run in the order they appear in the collection JSON, so Folder B is listed before Folder A.
Attempts:
2 left
💡 Hint

Check the order of folders in the collection export JSON.