How to integrate Xray with Jenkins

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

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

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

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

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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Thursday in Agile

How Scrum works? It starts with training and education

To answer “How scrum works,” most of the teams I've worked with first addressed the question: “where to start?”  That question applies to both implementation and improvements on the Scrum framew...

220 views 3 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you