Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-6956

When importing JUnit results via Jenkins, the test summary and definition is being displayed incorrectly

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Medium
    • Resolution: Unresolved
    • Xray Cloud - 4.005.000 -2
    • Continuous Delivery
    • Integration
    • None
    • UNCOVERED

    Description

      Description
      When using a Post-build Action in Jenkins to import JUnit results, the tests summary and definition created in Jira does not show as in the XML file.
      This does not happen when we import directly via Jira UI or REST API.

      Attached the results XML file used. results.xml

      Pre-conditions

      • Have a Jenkins project;
      • Have a "Xray: Results Import Task" with the following configuration (changing the file path and project Key accordingly):

      How to reproduce

      1. Go to a project in Jenkins where we have Xray: Results Import Task configured
      2. Click "Build Now" on the left menu
      3. See the tests in Jira

      Actual result/Attachments
      The tests appear with characters different from what is passed in the results XML

      Expected result
      The test summary and definition look equal to the XML file.

       

      Attachments

        1. image-2024-03-15-17-13-39-964.png
          99 kB
          Gonçalo André Sousa Nunes
        2. image-2024-03-15-17-18-48-524.png
          47 kB
          Gonçalo André Sousa Nunes
        3. image-2024-03-15-17-20-42-785.png
          48 kB
          Gonçalo André Sousa Nunes
        4. Jenkins bug.gif
          8.22 MB
          Gonçalo André Sousa Nunes
        5. results.xml
          4 kB
          Gonçalo André Sousa Nunes

        Activity

          People

            nikhil.diwan Nikhil Diwan
            goncalo.nunes Gonçalo André Sousa Nunes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: