Page History
...
It is possible to import a single result (the test object itself with the "steps" (Manual tests) or "examples" (BDD tests)) or multiple execution results into the same Test Run (data-driven testing) using the "iterations" array.
If you have Xray Enterprise installed, if the "testVersion" is provided Xray will import the results using the provided test version as the base for the Test Run. Otherwise, Xray will try to resolve the imported execution result into an active test version. The Default version will be chosen if determined to be of the same Test Type. If not, Xray will use the latest active test version if the same Test Type.
testKey | The test issue key |
testInfo | The testInfo element (link) |
testVersion | The Test Version to import the result |
start | The start date for the test run |
finish | The finish date for the test run |
comment | The comment for the test run |
executedBy | The user id who executed the test run |
assignee | The user id for the assignee of the test run |
status | The test run status (PASS, FAIL, EXECUTING, TODO, custom statuses ...) |
steps | The step results (link) |
examples | The example results for BDD tests (link) |
iterations | The iteration containing data-driven test results (link) |
defects | An array of defect issue keys to associate with the test run |
evidence | An array of evidence items of the test run (link) |
customFields | An array of custom fields for the test run (link) |
...
Xray will first try to match test issues by the testKey if present. Otherwise, Manual or BDD tests are matched by summary whilst Generic tests are matched using the generic definition field, within the same project.
If Xray Enterprise is installed, and if the Test issue is identified by testKey or summary, and if the Test Type of the testInfo element does not exist in any version of the Test, then a new version will be created automatically for the new definition. Otherwise, Xray will update the existing Test version using the default if the Test Type matches or the latest active version of the same Test Type.
Any changes to the testInfo element will update the test issue specification in Jira.
If the match field (summary or definition) is changed, Xray will search for another issue and will create a new test case, or update an existing test case if no one is found. If you need to change the summary or the definition, you can do it manually (go to Jira and change the field), or you can include the testKey within the test element.
...