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

Import XML with test cases and sections via API



I have a script which creates TestRail XML which is ready for import but I want to import xml by means TestRail API. Does API support XML or just JSON?

Best regards,


Hello Alex,

Thanks for your posting! The API uses JSON exclusively but you can simply import the XML file via the UI. You can alternatively also go through your XML file via a script and then generate the corresponding JSON API requests but we would usually recommend importing the XML file directly in the UI.



Hello Tobias,

Thank you for your answer.

I know about that feature but thanks :smile:

Seems like overhead, I will generate JSON instead of XML.



Thanks, Alex, sounds good. Please let me know in case any questions come up, we are happy to help in this case.