0
0
Postmantesting~10 mins

Flow creation in Postman - Test Execution Trace

Choose your learning style9 modes available
Test Overview

This test creates a simple API request flow in Postman and verifies the response status code is 200 OK.

Test Code - Postman
Postman
pm.test('Status code is 200', function () {
    pm.response.to.have.status(200);
});
Execution Trace - 4 Steps
StepActionSystem StateAssertionResult
1Test starts in PostmanPostman app is open with the API request ready-PASS
2Send API request to the serverPostman sends HTTP request to the specified endpoint-PASS
3Receive response from serverPostman receives HTTP response with status code and body-PASS
4Run test script to check status codePostman executes test script in Tests tabVerify response status code equals 200PASS
Failure Scenario
Failing Condition: Response status code is not 200
Execution Trace Quiz - 3 Questions
Test your understanding
What does the test script in Postman verify?
AResponse status code is 200
BResponse body contains JSON
CRequest headers are correct
DResponse time is less than 1 second
Key Result
Always verify the response status code in your API tests to ensure the server responded as expected before checking response content.