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

Incorrect Step Status lookup while importing execution results

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • R3.3.2
    • None
    • None
    • OK

    Description

      Xray is looking up for Test Status instead for Step Status when updating the Step Results.

       

      Before reproducing this problem make sure you have the following config in your Jira.

      At Xray Manage Test Statuses page, insert 3 custom Test Statuses, by this order:

      Status Name Position in list
      SKIPPED 6
      EVALUATING 7
      ACCEPTABLE 8

      In total, you should have 8 Test Statuses (5 defaults + 3 customs).

      At Xray Manage Test Step Status page add 1 custom Step Status:

      Status Name Position in list
      ACCEPTABLE 5

      In total, you should have 5 Test Step Statuses (4 defaults + 1 custom).

      How to reproduce the error:

      1. Create a Manual Test with 4 steps
      2. Create a Test Run for the Test: Execute In > New Test Execution
      3. Import the below-attached execution JSON report to the endpoint /import/execution
      4. Open the updated Test Run and you will find the below error at the Step Results

      JSON Report file:

          "testExecutionKey": "<TEST_EXEC_ISSUE_KEY>",
          "tests": [
              {
                  "testKey": "<TEST_ISSUE_KEY>",
                  "status": "TODO",
                  "steps": [
                      {
                          "status": "TODO"
                      },
                      {
                          "status": "TODO"
                      },
                      {
                          "status": "TODO"
                      },
                      {
                          "status": "ACCEPTABLE"
                      }
                  ]
              }
          ]
      }
      

       

      Attachments

        Activity

          People

            ipvm Isabel Moreira [X] (Inactive)
            dmdu David Duarte
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 5 hours, 5 minutes
                1d 5h 5m