0
0
Postmantesting~10 mins

Collection runner results in Postman - Test Execution Trace

Choose your learning style9 modes available
Test Overview

This test runs a Postman collection using the Collection Runner. It verifies that all requests complete successfully and that the expected assertions in each request pass.

Test Code - Postman
Postman
pm.test("Status code is 200", function () {
    pm.response.to.have.status(200);
});
pm.test("Response has expected property", function () {
    var jsonData = pm.response.json();
    pm.expect(jsonData).to.have.property('success', true);
});
Execution Trace - 6 Steps
StepActionSystem StateAssertionResult
1Collection Runner starts and loads the collection with multiple requestsPostman UI shows the collection loaded with all requests listed-PASS
2Runner sends the first request to the API endpointNetwork tab shows request sent and response received with status 200Check if response status code is 200PASS
3Runner executes test script for first requestTest script runs in Postman sandbox environmentVerify response JSON has property 'success' with value truePASS
4Runner sends the second request to the API endpointNetwork tab shows second request sent and response received with status 200Check if response status code is 200PASS
5Runner executes test script for second requestTest script runs in Postman sandbox environmentVerify response JSON has property 'success' with value truePASS
6Collection Runner completes all requests and shows summaryPostman UI shows all requests passed with green checkmarksVerify all tests passed in the collection runPASS
Failure Scenario
Failing Condition: If any request returns a status code other than 200 or the response JSON does not have the expected property
Execution Trace Quiz - 3 Questions
Test your understanding
What does the Collection Runner verify after sending each request?
AThat the response status code is 200
BThat the request URL is correct
CThat the request headers are present
DThat the response time is under 1 second
Key Result
Always verify both the HTTP status code and the response content to ensure your API behaves as expected during automated collection runs.