I've got Selenium automation tests using C# with xUnit test framework. When the tests are run the results are generated into a xUnit standard XML file. I am looking at the ways to somehow import the results from XML file into the TestRail so that I have a central repo for all test runs and I can generate meaningful reports inside TestRail.
I know there's an API I can use but creating methods inside the tests to post each test result is looking very cumbersome. Instead it would be really great if I can import the XML file into TestRail.
Please help.
I did it for my current company. We used Xunit 2.1 and C#. Once the report is generated, I created a Xml parser that will store the results in a dictionary and send the results to the testrail API.
We created a Add cases function to firstly create the TC and bulk upload results once the report is generated.
You can information about the testRail API there: