When getting information via GraphQL, we always have a limit of 100 issues to be shown per time.

Problem:

And if we have a Test Execution with more that 100 Tets, can we see them all? 

Answer:

Yes, you can! The results only appear paginated. So in order to see them all, we have to make different queries to show the results.

Let's see a practical example using Insomnia:


  • Test Execution with 108 Test Cases:

  • Using the function GetTestExecution from GraphQL, we will be able to see the first 100 Tets:


  • To see from 100, it's necessary to use the Start parameter as shown below. This will show you the tests from the 100º one.




You can use any number in the start parameter. Imagine, if you have 300 Tests, then you'll have to make 3 queries: start: 0; start:100, start:200, and so on. 


  • It is possible to retrieve all these Tests in a single request since each GraphQL request supports 25 resolvers. This means that in a single request we can get information from 25x100= 2.5k issues. For that, just build the code as shown below:

     


GraphQL API

https://xray.cloud.getxray.app/doc/graphql/

https://xray.cloud.getxray.app/doc/graphql/gettestexecution.doc.html