API Testing · Junior · Question 26 of 75
What does this Postman test check?
pm.test("status is 200", () => {
pm.response.to.have.status(200);
});- 1That the request was sent 200 times
- 2That the response status code is 200
- 3That the response body has 200 items
Show the answer
Correct answer: That the response status code is 200
Explanation
Tests run after the response arrives. Results show in the Test Results tab and in collection runs.