How to integrate Xray with Jenkins

Roberto Saltini June 29, 2016

Is there any way to integrate Xray automatic testing with Jenkins so that Jenkins test result are visible within each test case?

 

Thanks.

2 answers

1 vote
Joao Mendonca June 30, 2016

Hi Roberto,

 

Yes, it is possible to integrate Xray with Jenkins, using Xray's restAPI and some cURL commands. Check out this tutorial, which is about Bamboo instead of Jenkins, but I think the logic it's pretty much the same.

 

Best regards,

João

0 votes
elodie amato August 31, 2016

Hello Joao,

 

in the tutorial "Automated tests with Bamboo", tests are defined in Jira, with Gherkin language. Those steps definitions are then implented with test code, which is triggered when launching the Cucumber job.

Is it possible to integrate XRay with Jenkins, for other tests than Cucumber tests?

In my case, I would like to integrate protractor tests results (they are published in Jenkins as JUnit test results)

 

Thank you,

Elodie

Sergio Freire - Xblend
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2016

Hello Elodie,

you can see this article related with Jenkins integration http://www.xpand-addons.com/automated-tests-with-jenkins/ .

Concerning integration with other test results, please give a look to Xray for JIRA documentation site here: http://confluence.xpand-addons.com/display/XRAY/Import+Execution+Results+-+REST.

It is possible to import results from Xamarin Test Cloud, JBehave, or any other frameworks as long as you use the Xray generic JSON format for reporting test results.

We do, however, intend to natively support JUnit reports in the near future. 

 

Thanks,

Sergio

vishnu s s October 18, 2018

can we have a groovy script for Jira-Xray server configuration for Jenkins xray plugin . As of now we configure the jiraurl,username and pwd in Jenkins/configure page UI. Since xray plugin source code is not available , can anyone provide a groovy script to automate the configuration part.

Abel Trejo January 7, 2021

Hi Vishnu!, I had the same need and got some help, you can see some examples below!

https://github.com/jenkinsci/xray-connector-plugin/issues/35

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events