Recall & Review
beginner
What is response time in API testing?
Response time is the time taken by an API to respond to a request. It measures how fast the server replies after receiving a request.
Click to reveal answer
beginner
Why is measuring response time important in Postman tests?
Measuring response time helps ensure the API is fast and reliable. Slow responses can affect user experience and system performance.
Click to reveal answer
beginner
How can you check response time in Postman?
Postman shows response time in milliseconds in the response section after sending a request. You can also write tests to assert response time limits.
Click to reveal answer
intermediate
Write a simple Postman test script to check if response time is less than 500 ms.
pm.test("Response time is less than 500ms", function () {
pm.expect(pm.response.responseTime).to.be.below(500);
});
Click to reveal answer
intermediate
What factors can affect API response time?
Factors include server load, network speed, database performance, and the complexity of the API logic.
Click to reveal answer
In Postman, where can you see the response time after sending a request?
✗ Incorrect
Postman displays the response time in milliseconds in the response section, usually near the status code.
Which Postman test script checks if response time is under 1000 ms?
✗ Incorrect
The correct syntax uses pm.response.responseTime and checks if it is below 1000 ms.
Why might an API have a slow response time?
✗ Incorrect
Server overload can cause slow response times due to limited resources.
What unit does Postman use to show response time?
✗ Incorrect
Postman shows response time in milliseconds for precise measurement.
Which of these is NOT a good practice when testing response time?
✗ Incorrect
Ignoring response time is bad because it affects user experience and system health.
Explain what response time means in API testing and why it matters.
Think about how fast an API replies and why speed is important.
You got /3 concepts.
Describe how to write a Postman test to check if the response time is within an acceptable limit.
Use Postman's scripting to compare response time with a threshold.
You got /3 concepts.