Hello,
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite name="cxxtest" date="Tue Apr 23 23:28:43 2013" tests="2" errors="0" failures="1" time="0" >
<testcase classname="MyTestSuite2" name="testAddition" line="7" />
<testcase classname="MyTestSuite2" name="testMultiplication" line="13">
<failure file="MyTestSuite2.h" line="16" type="failedAssertEquals" >Error: Expected (2 * 2 == 5), found (4 != 5)</failure>
</testcase>
</testsuite>
Above is the sample output on executing the runner for MyTestSuite2.
I am looking for a way to add field/property in source code that can be generated along with regular XML output. The value of testcase id will be specified inside each test case of test suite.
For eg:
<?xml version="1.0" encoding="UTF-8" ?>
<testsuite name="cxxtest" date="Tue Apr 23 23:28:43 2013" tests="2" errors="0" failures="1" time="0" >
<testcase classname="MyTestSuite2" name="testAddition" id="10.20.30.100" line="7" />
<testcase classname="MyTestSuite2" name="testMultiplication" id="10.20.30.101" line="13">
<failure file="MyTestSuite2.h" line="16" type="failedAssertEquals" >Error: Expected (2 * 2 == 5), found (4 != 5)</failure>
</testcase>
</testsuite>
Now, is it possible to generate xml containing additional tags(eg: here id) under testcase ?
Kindly acknowledge with your replies.