Saturday, November 26, 2011

Generating Test Result Report using Ant from Java eclipse

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. There is another post you can find in the name of "Selenium RC using Java with eclipse" for the beginners.
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:
Create a folder "junit" in side the project folder. Right click on the AntBuildfile-->RunAs -->AntBuild
Return to java project and run as junit test. End of test run you will find the test result in a html file named as index.html it will be stored inside the junit folder.


1 comment:

  1. Hey Can you please tell me the difference between Selenium,Selenium backed webdriver and Webdriver?

    ReplyDelete