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

Jenkins Integration


#1

Hi,

We currently run test scripts in jenkins and would like these to update runs and results within TestRail. I have seen that there was a jenkins plugin (SimplyMeasured) for this but I cannot find it anywhere. In the mean time I have been using the API to add a run and update it with a result.

Please could you advise if there is anything out there that can do this for us from Jenkins as I am more than likely going to have to write a script to run all of the API calls (passing in arguments).

regards,
Duncan


#2

Hello Duncan,

Thanks for your posting. It seems that the SimplyMeasured plugin is no longer available on GitHub (at least publicly). You can always use the API directly (and our bindings for various programming languages):

http://docs.gurock.com/testrail-api2/start

We are also happy to help in case you have any questions.

Regards,
Tobias


#3

Hello,

Sorry for necromancing this thread, but it is pretty much the exact same question I have.

I’m currently evaluating TestRail for my company, and one of our requirements is to export test results from Robot Framework and Protractor into TestRail. I’m really hopeful we can find a way for Jenkins to handle this instead of having each test tool directly call into TestRail’s API.

We found a fork of SimplyMeasured’s Jenkins plug-in (Link), but it also appears to have been abandoned.

Is there a recommended plugin for Jenkins, or is direct API access by each test tool the way to go?

Thanks!


#4

Hi there!

We usually highly recommend directly integrating TestRail’s API into your test automation scripts instead of using a specific Jenkins plugin. This way your tests would directly submit the results to TestRail, whether they are triggered manually or via Jenkins. This is also usually much more flexible, as a Jenkins plugin would only be able to submit results on specific XML files or tools. We have many teams using TestRail this way with Jenkins and many other CI systems and this approach has proven to be very robust and flexible.

Directly integrating TestRail’s API with your test automation scripts would be much more flexible, would result in integration with Jenkins and this is easier to maintain usually:

http://docs.gurock.com/testrail-api2/

I hope this helps!


#5

Hi,

Sorry for not posting this sooner but after last posting I decided to make a plugin myself. It’s been some time since I used it as I moved jobs however I am now resurrecting it and will be making it available within github asap.

I will keep you posted.

Duncan


#6

Hi Duncan,

That would be great, looking forward to the integration :slight_smile:

Cheers,
Tobias


#7

Any word on the integration? I’d be happy to test and report back.


#8

Hi Kip,

Thanks for your posting! We haven’t got an update but it’s also planned to look into this ourselves for a future version. I believe there are also various TestRail and Jenkins plugins already on GitHub:

Cheers,
Tobias


#9

Hi Duncan,
Could you please share the custom plugin you have.

Thanks

Helen