539553a572
Add an enumeration for system-out and alog element for it. Redirect the messages types that are not warnings/errors to this element. For compatibility, write it out only if it is not empty. Rename enumerations and members accordingly. [ChangeLog][QtTestLib] In JUnit XML, output that is not a warning/error is now logged under <system-out> instead of <system-err>. Fixes: QTBUG-86540 Change-Id: I55598eafa7dafa486ac5a8221029c332ff47413b Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
53 lines
3.2 KiB
XML
53 lines
3.2 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite name="tst_BadXml" timestamp="@TEST_START_TIME@" tests="6" failures="5" errors="13" time="@TEST_DURATION@">
|
|
<properties>
|
|
<property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
|
<property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
|
<property name="QtBuild" value=""/>
|
|
</properties>
|
|
<testcase name="initTestCase" result="pass" time="@TEST_DURATION@"/>
|
|
<testcase name="badDataTag" result="fail" time="@TEST_DURATION@">
|
|
<!-- type="qdebug" message="a message" tag="fail end cdata ]]> text ]]> more text" -->
|
|
<failure result="fail" message="a failure" tag="fail end cdata ]]> text ]]> more text"/>
|
|
<!-- type="qdebug" message="a message" tag="pass end cdata ]]> text ]]> more text" -->
|
|
<!-- type="qdebug" message="a message" tag="fail quotes " text" more text" -->
|
|
<failure result="fail" message="a failure" tag="fail quotes " text" more text"/>
|
|
<!-- type="qdebug" message="a message" tag="pass quotes " text" more text" -->
|
|
<!-- type="qdebug" message="a message" tag="fail xml close > open < tags < text" -->
|
|
<failure result="fail" message="a failure" tag="fail xml close > open < tags < text"/>
|
|
<!-- type="qdebug" message="a message" tag="pass xml close > open < tags < text" -->
|
|
<!-- type="qdebug" message="a message" tag="fail all > " mixed ]]> up > " in < the ]]> hopes < of triggering "< ]]> bugs" -->
|
|
<failure result="fail" message="a failure" tag="fail all > " mixed ]]> up > " in < the ]]> hopes < of triggering "< ]]> bugs"/>
|
|
<!-- type="qdebug" message="a message" tag="pass all > " mixed ]]> up > " in < the ]]> hopes < of triggering "< ]]> bugs" -->
|
|
</testcase>
|
|
<testcase name="badMessage" result="pass" time="@TEST_DURATION@">
|
|
<!-- type="qdebug" message="end cdata ]]> text ]]> more text" tag="string 0" -->
|
|
<!-- type="qdebug" message="quotes " text" more text" tag="string 1" -->
|
|
<!-- type="qdebug" message="xml close > open < tags < text" tag="string 2" -->
|
|
<!-- type="qdebug" message="all > " mixed ]]> up > " in < the ]]> hopes < of triggering "< ]]> bugs" tag="string 3" -->
|
|
</testcase>
|
|
<testcase name="failWithNoFile" result="fail" time="@TEST_DURATION@">
|
|
<failure result="fail" message="failure message"/>
|
|
</testcase>
|
|
<testcase name="encoding" result="pass" time="@TEST_DURATION@">
|
|
<!-- type="qdebug" message=""Ülrich Ümläut"" -->
|
|
</testcase>
|
|
<testcase name="cleanupTestCase" result="pass" time="@TEST_DURATION@"/>
|
|
<system-out>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[a message]]>
|
|
<![CDATA[end cdata ]]]><![CDATA[]> text ]]]><![CDATA[]> more text]]>
|
|
<![CDATA[quotes " text" more text]]>
|
|
<![CDATA[xml close > open < tags < text]]>
|
|
<![CDATA[all > " mixed ]]]><![CDATA[]> up > " in < the ]]]><![CDATA[]> hopes < of triggering "< ]]]><![CDATA[]> bugs]]>
|
|
<![CDATA["Ülrich Ümläut"]]>
|
|
</system-out>
|
|
<system-err/>
|
|
</testsuite>
|