[junitee-user] JUnitEE results format
Brought to you by:
o_rossmueller
|
From: smile d. <smi...@gm...> - 2010-02-25 21:27:25
|
Hi All,
The JUnitEE test results XML format is not same as JUnit test results XML
format.
Can someone help me in making JUnitEE test results XML in the same format as
JUnit XML format?
Following is the junitee ant task to execute my tests.
<junitee url="${WEBAPP_GENERIC_URL}/TestServlet" printsummary="true"
haltonfailure="false" haltonerror="false" filtertrace="false">
<formatter type="xml"/>
<formatter type="brief" usefile="false"/>
<test runall="true" failureproperty="tests.failed"
todir="${reportsdir}"/>
</junitee>
I see the results xml as below:
<testsuite errors="0" failures="0" name="SearchTest"
package="com.abcd.xyz" tests="14" time="43.946">
<testcase name="testRegistrationSearch" time="4.578"></testcase>
<testcase name="testSubcatSearch" time="2.707"></testcase>
<testcase name="testSimpleSearchString" time="2.948"></testcase>
</testsuite>
But I need the result xml output to be in the following format ( like the
output if executed as JUnit test)
<testsuite errors="0" failures="0" name="SearchTest"
package="com.abcd.xyz" tests="14" time="43.946">
<testcase name="testRegistrationSearch" time="4.578"></testcase>
<testcase classname="com.abcd.xyz.SearchTest"
name="testSubcatSearch" time="2.707"></testcase>
<testcase classname="com.abcd.xyz.SearchTest"
name="testSimpleSearchString" time="2.948"></testcase>
</testsuite>
I need this in the same formate as JUnit test results Since in my company
the test results (only in JUnit test results format ) are automatically read
& posted in the dashboard.
I searched in the junitee.org, where it says the results are in line with
the junit tests. So i wonder if i am missing something in my junitee ant
task so that i am missing the classname.
Any help on this would be greatly appreciated !
Thanks & Regards
Dinakar
|