Page History
Xray supports integration with Continuous Integration tools, thanks to its REST API.
Popular CI tools
To integrate with Bamboo, please see the Xray for Bamboo for instructions.
Warning | ||
---|---|---|
| ||
Please read the blog posts below for detailed procedures on how to set up your CI tool. |
Other tools
If you need to integrate with a CI tool not mentioned above, you generally have to follow this workflow:
...
Export tests from Jira
...
For some tools (e.g. Bamboo, Jenkins), our team provides add-ons that you can use to easily setup your CI/CD pipeline. These add-ons interact with our public REST API.
If you're using another CI tool, you can still easily integrate with Xray. The Integration with TeamCity (legacy) page is a good example, where you're able to see how easy is to submit automated test results for different automation frameworks supported by Xray.
Section | ||||
---|---|---|---|---|
|
...
If you have your tests specification in your Version Control System (e.g., Git, SVN) and prefer to implement CI from there, 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 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 Jira
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 |