Thursday, February 24, 2011

Generating Test Result Report using Ant from Java eclipse

Always Reporting is the most important thing in testing, here described is the steps to configure and generate the test result from java eclipse using Ant.
this post is for users who have already familiar with java and eclipse.

Generating the ANT build:
Right click on the project and select Export --> Ant Buildfiles.-->Next-->Select the project-->Finish.
Configuring jar:
Select Windows menu-->Preference -->Global Entries -->Add External JARs-->Select the folder where the eclipse is installed. eclipse -->Plugin -->Currently its located in "org.junit_4.8.1.v4_8_1_v20100427-1100"-->"junit.jar"-->OK.
Run the Ant Build:
right click on build.xml go to run as- external tools confirgurations ---targets tab and select your test suites and junitreport.   then right click on build.xml and run as antbuild file...



You will get the report as below

No comments:

Post a Comment