Recall & Review
beginner
What is pagination in API testing?
Pagination is a technique to divide large sets of data into smaller chunks or pages, making it easier to retrieve and display data step-by-step.
Click to reveal answer
beginner
Why do we test pagination in APIs?
We test pagination to ensure that the API correctly returns the right number of items per page, handles page navigation properly, and does not skip or repeat data.
Click to reveal answer
intermediate
In Postman, how can you test the number of items returned per page?
You can write a test script using JavaScript in the Tests tab to check the length of the response array matches the expected page size.
Click to reveal answer
beginner
What is a common parameter used for pagination in APIs?
Common parameters include 'page' (which page number to fetch) and 'limit' or 'pageSize' (how many items per page).
Click to reveal answer
intermediate
How do you verify that pagination does not skip or repeat items?
By requesting multiple pages in sequence and checking that the combined data matches the full dataset without duplicates or missing items.
Click to reveal answer
Which parameter typically controls the page number in API pagination?
✗ Incorrect
The 'page' parameter specifies which page of data to retrieve.
In Postman, where do you write scripts to test pagination responses?
✗ Incorrect
The Tests tab is used to write JavaScript code to validate responses.
What should you check to ensure pagination is working correctly?
✗ Incorrect
Testing pagination involves checking the number of items per page and that pages navigate correctly.
If an API returns 10 items per page, how many items should you get after requesting pages 1 and 2?
✗ Incorrect
Two pages with 10 items each should return 20 items total.
Which test ensures no data is skipped or repeated across pages?
✗ Incorrect
Data integrity tests verify that pagination returns all data without duplicates or missing items.
Explain how you would test pagination using Postman.
Think about parameters, requests, and validation scripts.
You got /5 concepts.
Why is testing pagination important in API testing?
Consider the impact on data retrieval and display.
You got /4 concepts.