Pagination

API Testing

// Definition

A mechanism for breaking a large result set into discrete pages, returned via page/offset parameters or a cursor. Common bugs include off-by-one errors at page boundaries (last item on page N appearing as first item on page N+1), incorrect total-count values, empty last pages, and results changing between pages when the underlying data is modified mid-session. Test with dataset sizes that exercise boundaries: exactly one page, exactly one item, zero items, and a non-integer number of full pages.

// Related terms