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

When Importing Execution Results, if there are Required Fields with Default Values, the results are not correctly imported

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 5.1.4
    • None
    • None
    • UNCOVERED

    Description

      Description
      When Importing Execution Results in Xray, if there are Required Fields with Default Values, the results are not correctly imported.
      The same parameters when you create a Jira Issue using REST API are correctly defined.

      Pre-conditions
      Have a Required Field Custom Field, with the Default Value defined.

      How to reproduce

      Importing Cucumber Test Results single request

      POST /rest/raven/1.0/import/execution/cucumber
      

      Actual result/Attachments
      You see the error "Error importing execution results to database: <custom field> is required."

      Expected result
      The results are correctly imported, and the Custom Field is set with its Default Value.

      Importing JUnit XML results single request

      POST /rest/raven/1.0/import/execution/junit
      

      Actual result/Attachments

      • Doesn't produce an error;
      • Test Execution and Tests are created;
      • The Required Custom Field is set with the Default Value;
      • The Test Results are empty, and the links to Requirements are not present.

      Expected result
      The Test Execution and Tests are created with the Custom Field is set with its Default Value, and the results are correctly imported.

      Version

      • Xray v5.1.4
      • Jira v8.x

      Attachments

        Activity

          People

            helder.ferreira Helder Ferreira
            fnsi Francisco Silva [X] (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: