I’m generating a test report where in addition to test result status, an history of execution is also included. So, in this manner we have an information about how test behaves over time in terms of flakiness.
The issue we are experiencing is that generating a report takes around 25 min for 3000 results, as each test case have to be interrogated individually (get_results), with a set of limit=5 i.e. look back and return 5 results for given ID. Every second there is approx 5 REST API call executed, this is taking too long at this moment and it’ll only get worse going forward.
Had a look on other available API and tried out the get_results_for_run, hoping that limit also applies to each individual test case i.e. how far to look back, however this is not the case and it only applies to all tests. So this is a no go.
What would you suggest?