Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Xray DC V7.7
Description
Description:
When we import JSON Execution results via REST API, if the Test Created is of Custom type of kind Steps, the Test creation fails with error: "error": "value should not be null!".
Pre-conditions: : Add a Custom Test Type of kind Steps.
Jira Settings > Manage Apps > Xray > Test Types
How to reproduce:
- Import Execution results using Rest API - Xray JSON results
- In the JSON body, pass the Test Type as custom Test Type along with the Steps to create a Test while importing the results.
{ "testExecutionKey": "TWO-31", "tests" : [ { "status": "FAIL", "testInfo": { "summary": "Create new test", "projectKey": "ABCD", "testType" : "CustomStepType", "steps": [ { "action": "Step action 1", "data": "Data 1", "result": "Step result 1" }, { "action": "Step action 2", "data": "Data 2", "result": "Step result 2" } ] } } ] }
Actual result/Attachments:
Results in "error": "value should not be null!"
Expected result:
The results import should create a Test of custom type specified in the JSON.
Version
- Xray DC - V7.7