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

Import Execution Results API should throws RESET/MERGE option when testInfo object is not passed when the Test Run is having iteration data

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Xray DC - v7.10.1
    • Continuous Delivery
    • REST API
    • None
    • UNCOVERED

    Description

      DescriptionXray JSON results API throws RESET / MERGE on the Test Run if the testInfo object is not passed in the results file provided the Test Run has iterations. However, the same API works without showing RESET/MERGE if the Test contains Manual Test Steps without iterations.

      Pre-conditions: Consider two Tests with one Test having Manual Test Steps and the other Test having a Data Set. Create Test runs for the Tests.

      How to reproduce

      1. Use the following sample API body and API end-point to update the existing Test Runs
      2. End-point: POST http://yourserver/rest/raven/1.0/import/execution
      1. {
            "testExecutionKey": "<ExecKey>",
            "tests": [
                {
                    "testKey": "<TestKey>",
                    "start": "2024-01-30T11:11:00+03:00",
                    "finish": "2024-01-30T14:52:30+03:00",
                    "status": "PASS",
                    "comment": "new Commented added via API"
                }
            ]
        }

      Actual result/Attachments:

      The Test Run without iteration data gets updated without a Reset/Merge option, whereas, for the Test Run with iteration data, there is a Reset/Merge option.
       

      Expected result: The Test Run page with iteration data should not throw the Reset/Merge option instead update the given fields.

      Version

      • <app versions>

      Workaround

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: