1

I am new to TestRail tool and wanted to integrate all my UI Selenium automation test cases with TestRail. I have gone through the API Bindings of TestRail but they are only meant for API test cases. Can someone please please give me any idea to integrate TestRail with selenium using c#.

  • Would you be able to give more information on the problem? What are you trying to achieve? You can integrate any code that is running Selenium with Testrail as long as you call the correct API methods in your test framework. What language or set up are you using? – Declan Carroll Jan 13 '20 at 19:35
  • @DeclanCarroll I've tried the below links codes but unfortunately didn't worked for me http://docs.gurock.com/testrail-api2/bindings-dotnet and https://www.gerbenvanadrichem.com/quality-assurance/basic-integration-of-automated-testcases-with-testrail/. – adityashivankar Jan 16 '20 at 13:55
  • I've provided a link to an example in my answer. You would need to call the Testrail API to report the results of your tests. – Declan Carroll Jan 21 '20 at 19:52
  • Sorry for the delay response @DeclanCarroll I'll try and will update you. – adityashivankar Jan 23 '20 at 07:46
  • Hey, did it work? – Declan Carroll Jul 29 '20 at 22:43

1 Answers1

1

What you would need to do to integrate it is to set up your test run as part of your set up code when you are running your Selenium tests.

There is a Nuget package that will allow you to integrate with Testrail if you are using the original test suite project style from Testrail.

https://github.com/zoosk/testrail-client

I've created an example project of a simple Selenium + NUnit + Testrail integration here: https://github.com/shortstacked/SeleniumTestrailIntegration

Declan Carroll
  • 259
  • 3
  • 9