QT Quick Test Case XML test results malformed after QT6.7.2 upgrade : cleanupTestCase incomplete?
-
Hello.
We are currently upgrading from QT5.15 to QT6.7 and have noticed that due to some changes in TestCase.qml and new TestSchedule.qml , it appears XML testresults output are never correctly closed.
E.g. after running simple app startup 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>
But due to missing " </TestFunction>" closure, we can never parse the XML results correctly...
Can anyone explain the implementation of new TestSchedule.qml ? I presume we have incorrect usage which means the cleanuptestcase does not complete before we mark the test as done.
-
Hello.
We are currently upgrading from QT5.15 to QT6.7 and have noticed that due to some changes in TestCase.qml and new TestSchedule.qml , it appears XML testresults output are never correctly closed.
E.g. after running simple app startup 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>
But due to missing " </TestFunction>" closure, we can never parse the XML results correctly...
Can anyone explain the implementation of new TestSchedule.qml ? I presume we have incorrect usage which means the cleanuptestcase does not complete before we mark the test as done.