Verify usage of local variables in Postman test script
Preconditions (2)
Step 1: Open the GET request in Postman
Step 2: Go to the Tests tab
Step 3: Declare a local variable named 'responseTime' and assign it the value of pm.response.responseTime
Step 4: Write an assertion to check that 'responseTime' is less than 2000 milliseconds
Step 5: Send the request
Step 6: Observe the test results
✅ Expected Result: The test passes if the response time is less than 2000 ms, confirming the local variable 'responseTime' was correctly used in the test script