Which Postman test script correctly asserts that the response time is less than 500 milliseconds?
Look for the correct property name and the correct comparison method.
Option B uses the correct property pm.response.responseTime and asserts it is below 500ms, which matches the requirement.
Option B incorrectly checks if response time is above 500ms.
Option B uses a wrong property pm.response.time which does not exist.
Option B checks for equality to 500ms, not less than.
What will be the test result output if the response time is 600ms for the following Postman test?
pm.test('Response time under 500ms', () => { pm.expect(pm.response.responseTime).to.be.below(500); });pm.test('Response time under 500ms', () => { pm.expect(pm.response.responseTime).to.be.below(500); });
Think about what happens when the actual response time is greater than the expected maximum.
The assertion expects the response time to be below 500ms, but the actual is 600ms, so the test fails with an assertion error showing the expected and actual values.
Find the error in this Postman test script that checks response time:
pm.test('Response time check', () => { pm.expect(response.responseTime).to.be.below(300); });pm.test('Response time check', () => { pm.expect(response.responseTime).to.be.below(300); });
Check the object used to access response properties in Postman scripts.
In Postman test scripts, the response object is accessed via pm.response. Using response alone causes a ReferenceError.
Which is the best reason to avoid setting a very low response time threshold (e.g., 10ms) in Postman assertions?
Think about real-world network conditions and server load.
Setting too low a threshold can cause tests to fail due to normal fluctuations in network latency or server processing time, not actual problems.
You want to create a Postman test that fails if the response time exceeds 400ms but logs a warning if it is between 300ms and 400ms. Which script correctly implements this behavior?
Consider how to fail a test explicitly and how to log warnings without failing.
Option A correctly fails the test if time > 400ms using pm.expect.fail(), logs a warning if time is between 300ms and 400ms using console.warn, and passes otherwise.
Option A reverses fail and warn logic.
Option A does not log warnings and does not fail explicitly.
Option A fails for times above 300ms, which is stricter than required.