Is there any way to import test runs and results stored in XML or Excel formats into the TestRail test runs and results tab?
Thanks for your posting. The import is currently available for sections and test cases on the Test Suite/Cases tab only (mostly to import test cases from other systems or Excel). Do you want to import test runs & results from another TestRail installation? You could look into using TestRail’s API to programmatically add test runs/plans and results:
Yes, the idea was to import results to another user’s installation of TestRail. We are looking at the API and plan to use them for this work. Will get back if we notice any hurdles.
You are welcome, Fatima, and please let us know in case any questions come up!
1.) I have a question regarding same issue, see i am using Nunit(C#) to test windows form application, after completing xml file is generated, So can we update result on testrail using xml file ?? if yes then how ??
2.) you’ve mention this link http://docs.gurock.com/testrail-api2/bindings-dotnet to add API and integrate, after adding files to my c# project there are two files generated, APIClient and APIException. after this i am not getting what to do … can you please tell me how to go further ? Because i am new to this tool.
Please share one example so that i can continue
The .NET binding is just a wrapper around TestRail’s API with authentication handling, JSON encoding, etc. and the idea is to use this binding to call TestRail’s API methods directly. If you have an XML file with test results, we would recommend going through the file and submit the test results as you go through them (or submit them with the bulk API methods). There’s a good introduction to test automation with TestRail and how other teams integrate test automation tool on our blog:
You can find the documentation for the .NET API binding here: