Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128836

QT Test XML test results never correctly closed after Qt6.7.2 [Missing "/TestFunction>" closure]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.7.2
    • Testing: qtestlib
    • None
    • MacOS 12
    • macOS

    Description

      Was suggested I log this after posting on QT forum.

      After upgrading to QT6.7.2 with no other changes, it appears that QT Test test results never correctly close braces when writing out test results in XML format.

      E.g. After simple app startup UI test:

      <TestCase name="UITest"> 
      <Environment> 
          <QtVersion>6.7.2</QtVersion> 
          <QtBuild>Qt 6.7.2</QtBuild> 
          <QTestVersion>6.7.2</QTestVersion> </Environment> 
      <TestFunction name="Null test::initTestCase"> 
          <Incident type="pass" file="" line="0" /> 
          <Duration msecs="28.9662"/> 
      </TestFunction>
      <TestFunction name="Null test::test_WaitForStart"> 
          <Message type="qinfo" file="" line="0">    
          <Description><![CDATA[qml: Waited for app to start]]></Description>                      </Message> 
          <Incident type="pass" file="" line="0" /> 
          <Duration msecs="1265.11"/> </TestFunction> 
      <TestFunction name="Null test::cleanupTestCase"> 
      <Duration msecs="4071.77"/>
       </TestCase>
       

      Please note there is OMITTED  "</TestFunction>" at the end of cleanupTestCase

      Due to this, Jenkins/other XML interpreters can never parse the testresults file.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            macadder Jason McDonald
            james-m-nz james mac
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes