Uploaded image for project: 'Xray for Jenkins'
  1. Xray for Jenkins
  2. XRAYJENKINS-144

Unable to import multiple JUnit results into the same test execution when creating the test with required fields.

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Waiting Approval
    • Medium
    • Resolution: Unresolved
    • None
    • None
    • None
    • UNCOVERED

    Description

      Unable to import multiple JUnit results into the same test execution when creating the test with required fields.

      Preconditions:

      • Has a Jenkins env with Xray connect installed
      • Has an Xray cloud instance
      • Has a Jira instance configured on the Jenkins environment

      Steps to reproduce:

      • Go to Jira Cloud and configure the affected versions field as required
      • Go to Jenkins env create a new Item "Freestyle Project"
      • Go to Post-build Actions and select Xray Results import Task
        • Turn on Import to Same Test Execution  
        • On format choose: JUnit XML multipart
        • Execution Report File: the full path to your folder with at least 2 XML files (.../jenkins/JUnitResults_Selenium/samples/**.xml)
        • Fill Test exec and test data, choosing JSON Content and add the content of the follow files:
      • Then click on save and run the build.

      Actual result:

      The test results of the first XML are created, and the next will fail because it is missing the affected versions field.

      Expected result:

      All test results should be imported and linked to the right test plan

      Attachments

        1. test.json
          0.1 kB
          Rui Rocha
        2. testexec.json
          0.2 kB
          Rui Rocha

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rgrr Rui Rocha
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: