Total Pageviews

Wednesday, March 9, 2011

How to generate Test Result Report using Ant from Java eclipse

Reporting is the most important thing in testing.
Below mentioned steps are to  configure and generate the test result from java eclipse using Ant.

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...


No comments:

Post a Comment