Creating Report.....It is easy with TestNG...it will create default reports....in HTML format.
The Default feature in TestNG is it will create reports automatically..you need not to write any code...
Just run the Script with TestNG...it will automatically create a report...
First Setup the TestNg
Please go through link if you dont know how to set up...
Setting up Selenium RC & TestNG using Eclipse
Observe the screen shot before running the test...
Screen Shot after running the Test
Before Running the Test Run the script --Run as -->TestNG --see the below screen shot...Report is generated. |
After Running the Test |
NOTE: You need to download the testng-5.14.10.jar file................it should be in your referenced library..
Hope it will be helpful .......