API Testing · Junior · Question 26 of 75

What does this Postman test check?

pm.test("status is 200", () => {
  pm.response.to.have.status(200);
});
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.

Further reading

Problem with a question

API Testing · Junior · question 26

Test yourself

Take the API Testing · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz