Hello.
We’re evaluating Xray plugin as a way to get better visibility in our projects linking between features on one side and tests on another. We did install Jenkins plugin, configured JIRA and “Test Connection” is successful. As a prototype we took an existing Java project with Cucumber tests. On JIRA side we had a project where we manage requirements. So we added another JIRA project using Xray template. Suppose its ID is XRAY and issues have IDs like XRAY-1. In the source tree we manage Cucumber features under src/test/resources/features/**/*.feature. Those feature files usually combine several tests for each feature. We created a new ticket of type test in XRAY project so its ID is XRAY-1. We put it in the feature running this test like
@get_catalo
@permission
@issue:XRAY-1
Scenario Outline: Get catalog
While other tests in the same feature might have other tags (we were trying to use Zephyr previously). We are able to execute the test running job correctly. It generates Cucumber report in target/json/cucumber.json. We can see the test with the new tag XRAY-1 in a published report. But when we try to enable Xray: Results Import Task we get
ERROR: Step ‘Xray: Results Import Task’ failed: Unable to confirm Result of the upload..... Upload Failed! Status:400 Response:No tests found in execution result
So, what we’re doing wrong?
Thanks.
With best regards,
David.