Think about how Postman handles dependencies between requests in a collection run.
Postman runs requests in the order they appear in the collection. Since B depends on a variable set by A, A must run first. Similarly, C depends on B, so C runs last.
Look for the correct Postman assertion syntax for status code.
Option D uses the correct Postman Chai assertion syntax. Options A, C, and D either use incorrect properties or compare types incorrectly.
pm.test('Response has userId', () => { pm.expect(pm.response.json().userId).to.eql(123); });
Check how Postman parses response bodies based on headers.
If the response Content-Type header is missing or not application/json, pm.response.json() may fail or not parse correctly, causing the test to fail.
Think about how to programmatically decide which request runs next.
pm.setNextRequest() lets you specify the next request to run, enabling conditional flow control in collection runs.
Consider what setting next request to null means for the runner.
Calling pm.setNextRequest(null) tells Postman to stop running any further requests after the current one finishes.