Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-10277

When importing JSON execution results via REST API, Test creation fails for the Custom Test Type of Kind Steps

    XporterXMLWordPrintable

Details

    • UNCOVERED

    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:

      1. Import Execution results using Rest API - Xray JSON results
      2. In the JSON body, pass the Test Type as custom Test Type along with the Steps to create a Test while importing the results.
      3. {
            "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

      Attachments

        Activity

          People

            dpca Diamantino Campos
            jayanthi.murthi Jayanthi Murthi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: