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

failed importing JUnit XML having test_summary with encoded chars

    XporterXMLWordPrintable

Details

    • XRAYCLOUD 2024 Sprint 5, XRAYCLOUD 2024 Sprint 6
    • OK

    Description

      Whenever importing a JUnit XML file having custom properties where the values are escaped (due to the rules of XML encoding), Xray Cloud gives error processing it.

       

      To replicate:

       

      it will return an error:

       

      {"error":"Invalid JQL query"} 

       

       

       

      This seems to happen as the JUnit XML report contains a property with a value such as the following (which is sintatically correct):

      ..
      <property name="test_summary" value="Error &quot;Login or/and password are incorrect&quot;"/>
      ... 

      This will come as consequence of using a test such as the following one, together with the xray-junit-extensions package.

      @Test
      @DisplayName("Error \"Login or/and password are incorrect\"")
      public void annotatedWithDisplayNameCharsToBeEscaped()
      { fail("with DisplayName"); }
      

       

       

       

      Attachments

        Issue Links

          Activity

            People

              pablo.pena Pablo Peña
              smsf Sergio Freire
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: