Join 34,000+ subscribers and receive articles from our
blog about software quality, testing, QA and security.

How to use pagination in testcases API


#1

I am using https://qtdashboard.testrail.net/index.php?/api/v2/get_cases/1 api using GET request with PHP to get all test cases data from project.

Basically what i want suppose if i have 1000 of testcases and i want to fetch first 250 data like offset=0 and limit=250.After getting 250 data i will move to next 250 data like offset=250 and limit=250.

So how to pass offset and limit parameter in GET

I tried a lot and i am not getting any proper example to refer.

For testing i tried to pass limit and offset parameter like this https://qtdashboard.testrail.net/index.php?/api/v2/get_cases/1&limit=250&offset=0 but its not working still i am getting all the testcases