I am trying to fetch all the test runs from HP ALM using the ALM REST API, but my results are limited to only 100 records. I tried using the query as "?page-size =5000", but that doesn't work.
I am using the below link to fetch the test runs: "rest/domains/"+domain+"/projects/"+project+"/run"
Please can anyone help me out here?
Thanks in advance
(You don't mention the ALM version you're using. The following applies to v12.55:)
It seems you're using the wrong parameter page-size="5000"
. Instead, try limit="5000"
Specifying the Page Size in the Query
The client can indicate the number of instances to return in each page using the query parameter
limit="n"
. For example:
/qcbin/api/domains/{domain}/projects/{project}/tests?limit=20
As already mentioned, keep in mind the site paramaters REST_API_PAGINATION_MAX_LIMIT
(maximum page size, default 2000) and REST_API_PAGINATION_DEFAULT_LIMIT
(default page size, default is 100).
Further reading: https://admhelp.microfocus.com/alm/en/12.55/api_refs/REST/Default.htm#REST_API/Data_Paging.htm
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.