Recall & Review
beginner
What does response size mean in API testing?
Response size is the amount of data sent back by the server after an API request. It is usually measured in bytes or kilobytes.
Click to reveal answer
beginner
Why is monitoring response size important in testing?
Because large response sizes can slow down applications and use more bandwidth, affecting user experience and performance.
Click to reveal answer
beginner
How can you check response size in Postman?
After sending a request, Postman shows the response size in the response section, usually near the status code and response time.
Click to reveal answer
intermediate
What is a good practice when response size is too large?
Optimize the API to send only necessary data, use pagination, or compress the response to reduce size.
Click to reveal answer
intermediate
How can you write a test in Postman to check if response size is under 500 KB?
Use the test script:
pm.test('Response size is under 500KB', () => { pm.expect(pm.response.size()).to.be.below(500 * 1024); });Click to reveal answer
What unit is commonly used to measure response size?
✗ Incorrect
Response size is measured in bytes because it represents data amount.
Where can you find response size information in Postman after a request?
✗ Incorrect
Postman shows response size near the status code and response time in the response section.
Why should you keep response size small?
✗ Incorrect
Smaller response sizes help apps load faster and save bandwidth.
Which Postman method returns the response size in bytes?
✗ Incorrect
pm.response.size() returns the size of the response in bytes.
What is a good way to reduce response size?
✗ Incorrect
Pagination and compression reduce the amount of data sent in each response.
Explain how to check and test response size in Postman.
Think about where Postman shows response info and how to write tests.
You got /3 concepts.
Why is controlling response size important in API testing?
Consider what happens if response size is too big.
You got /3 concepts.