Page History
Table of Contents |
---|
...
Info | ||
---|---|---|
| ||
Please take a look at the general guidelines for Working with automated Tests for Xray for JIRA add-on for Bamboo and also the specifics for Testing with Cucumberfor Xray for JIRA add-on for Bamboo. |
Release Notes
Children Display |
---|
...
- Name: Configuration alias;
- Server Address: The address of the JIRA Server where Xray is running;
- Authentication information:
- User: Username;
- Password.
Tasks
The add-on provides one task for exporting Cucumber Scenario/Scenario Outlines from JIRA as .feature files, and another task for importing execution results.
...
By using this task, it will export the Cucumber Tests (i.e. Scenario/Scenario Outlines) in .feature or bundled in a .zip file. The rules for exporting are defined here.
This task corresponds to invoke Xray's Export Cucumber Tests REST API endpoint (more info here).
Configuration fields
Some fields need to be configured in order to export the Cucumber Tests.
...
The add-on provides easy access to Xray's Import Execution Results REST API endpoints (more info here), and therefore it mimics the endpoints input parameters.
...
In this example we configured the task to extract the features from a set of issues (PROJ-78 and PROJ-79), to the folder that holds the Cucumber project.
Importing the execution results
...
In this example, we configured the task to import the Cucumber JSON results back to JIRA.
After running the plan, the expected result is a new Test Execution issue created in the JIRA instance.
Importing the execution results with user-defined field values
...
And configured the task to import the Cucumber JSON Multipart results back to JIRA
After running the plan, the expected result is a new Test Execution issue created in the JIRA instance, with the Test Execution fields as specified in the Bamboo task configuration.
JUnit
Apart from supporting natively Cucumber, Xray for JIRA enables you to take advantage of many other testing frameworks, for instance JUnit. In this sense, Xray for JIRA add-on for Bamboo lets you to import other results in other formats besides Cucumber JSON.
...
In this example we have a configuration where the format JUnit XML is chosen.
After running the plan, the expected result is a new Test Execution issue created in the JIRA instance.
Troubleshooting
...
Your build process is failing and when you check its log, it presents you the following:
By default, when the user successively tries to log in to JIRA with wrong credentials, the next time you try to log in, JIRA instance will prompt you to provide a CAPTCHA. It is not possible to provide this information via the build process, so it will fail with status code 403 Forbidden.
You will need to log in to JIRA via browser and provide the CAPTCHA.
In case you are a JIRA administrator, you can go to JIRA administration > User Management and reset the failed login for the user who failed to log in.