POST /import/execution

Endpoint used to import Test results in the Xray JSON format.
Updating an existing Test Run using Xray format REST API will reset all dataset related fields. This means that all current iteration data and dataset present in the Test Run will be replaced with the new information given in the REST API request.

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
info Object No
info.description String No
info.revision String No
info.user String No
info.version String No
info.startDate String No
info.summary String No
info.finishDate String No
info.project String No
tests[] Array No
tests[].results[] Array No
tests[].results[].name String No
tests[].results[].examples[] Array No
tests[].results[].log String No
tests[].results[].status String No
tests[].results[].duration Integer No
tests[].finish String No
tests[].examples[] Array No
tests[].status String No
tests[].comment String No
tests[].evidences[] Array No
tests[].evidences[].data String No
tests[].evidences[].contentType String No
tests[].evidences[].filename String No
tests[].customFields[] Array No
tests[].testKey String No
tests[].testVersion String No
tests[].testInfo Object No
tests[].testInfo.scenario String No
tests[].testInfo.definition String No
tests[].testInfo.requirementKeys String No
tests[].testInfo.testType String No
tests[].testInfo.scenarioType String No
tests[].testInfo.testVersionId Integer No
tests[].testInfo.summary String No
tests[].testInfo.projectKey String No
tests[].steps[] Array No
tests[].steps[].comment String No
tests[].steps[].evidences[] Array No
tests[].steps[].evidences[].data String No
tests[].steps[].evidences[].contentType String No
tests[].steps[].evidences[].filename String No
tests[].steps[].actualResult String No
tests[].steps[].status String No
tests[].start String No
tests[].executedBy String No
testExecutionKey String No

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.