thanks for quick response. first i run the junit test cases classs and it generate regarding xml files. after that i add the junitreport tag in build.xml file, then i run the script it will ask for the xalan2 or xalan1 jar file then i download the jar file and put it in ant/lib directory and i set the path, again i run the script, now it will throw the following error
[junitreport] Using Xalan version: Xalan
Java 2.7.1
[junitreport] XSL-1000: (Fatal Error) Error while parsing XSL file (null).
BUILD FAILED
file:C:/EUC/GLOS/build.xml:64: Errors while applying transformations: XSL-1000:
(Fatal Error) Error while parsing XSL file (null).
please help me to resolve this and also i want to generate excel formet junit report
this is my junit configuration
<target name="testsuite" depends="compile" description="Running Test Suite">
<delete dir="${GLOS}/build"/>
<mkdir dir="${GLOS}/build"/>
<junit printsummary="yes" haltonfailure="no" fork="yes" maxmemory="512m">
<classpath>
<fileset dir="${GLOS}/web-inf/lib"/>
</classpath>
<formatter type="xml"/>
<batchtest fork="yes" todir="${GLOS}/build">
<fileset dir="${GLOS}/src">
<include name="**/*Testc*.java"/>
<exclude name="**/CosTest.java"/>
</fileset>
</batchtest>
</junit>
<junitreport todir="./reports">
<fileset dir="${GLOS}/build">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="./report/html1"/>
</junitreport>
<fail if="tests.failed">
*******************************************************
*******************************************************
One or more tests failed. Check the output...
*******************************************************
*******************************************************
</fail>
</target>
thanks