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

API, Long response (~15sec) for POST add_case

We faced the problem with the long response for POST add_case operation for TestRail API.
It takes about 12-18 seconds for each request. Approximately the issue appears 13 Dec

DEBUG:xunit2testrail.testrail.client:Make POST request to https://***.testrail.com/index.php?/api/v2/add_case/183845
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): ***.testrail.com:443
DEBUG:urllib3.connectionpool:https://***.testrail.com:443 "POST /index.php?/api/v2/add_case/183845 HTTP/1.1" 200 764
**TIME 15.9667980671 seconds**

Meanwhile, the GET requests take ~1sec

DEBUG:xunit2testrail.testrail.client:Make GET request to https://***.testrail.com/index.php?/api/v2/get_sections/13&suite_id=10612
{}
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): ***.testrail.com:443
DEBUG:urllib3.connectionpool:https://***.testrail.com:443 "GET /index.php?/api/v2/get_sections/13&suite_id=10612 HTTP/1.1" 200 109
TIME 1.07658696175 seconds

We add about 2000 test cases in one thread so it requires ~5h to be posted to the testrail.

It doesn’t depend on the type of network connection on our side.

Could you please recheck that you don’t have any performance issues on your side? or something like that?
Any clue to explain long responses?

@HArhipova

Hey Anna,

Welcome to the TestRail Community and apologies for the delayed response.

I just wanted to check in if you’re still facing aforementioned performance issue. I tried to find the Support Ticket in the logs, but couldn’t find any. Hence, following up here.

Look forward to hear from you.

Regards,
Shanu