Page History
Xray supports integration with some well known Continuous Integration tools but it can be used with other ones , thanks to Xray's its REST API.
Popular CI tools
Xray provides an add-on for Bamboo which makes it easy to use Xray in Continuos Integration scenarios where Bamboo it the CI tool of choice. Please see the add-on page for usage instructions.
To integrate with Bamboo, please see the Xray for Bamboo for instructions.
Warning | ||
---|---|---|
| ||
Please read the blog posts bellow posts below for detailed procedures on how to setup set up your CI tool. |
Other tools
Case If you need to integrate with another a CI tool not mentioned above, normally you will generally have to follow these steps.this workflow:
Export tests from JIRAJira
- Run the tests
- Import the results back to JIRAJira
Note that If you might have your tests specification in your Version Control System (e.g. GIT, Git, SVN) and prefer to implement CI from there onwards. In that case, then in step 1, you would obtain the tests from your VCS.
Info | ||
---|---|---|
| ||
Please take a look at the general guidelines for Working with automated Automated Tests and also the specifics for Testing with Cucumber. |
CI in a project using Cucumber tests
Export Cucumber tests
No Format |
---|
curl -u admin:admin http://xrayserver/rest/raven/1.0/export/test?keys=CALC-173 -o features/features.zip |
...
Unzip the tests (Cucumber .feature files)
No Format |
---|
unzip -o features/features.zip -d features/ |
...
Run the tests and save the report
No Format |
---|
cucumber -x -f json -o report.json |
Import the test results to JIRAJira
No Format |
---|
curl -H “Content-Type: application/json” -X POST -u admin:admin –data @report.json http://xrayserver/rest/raven/1.0/import/execution/cucumber |