понедельник, 19 ноября 2012 г.

Install TestNG in Eclipse


This post will explain about installation of TestNG plug-in with Eclipse (Indigo)
There is no need to download any Jar file or exe file for installation.  We need to just utilize the “Install New Software” option available in the Eclipse.
Steps for installation:
1. Click Help –> Install New Software
TestNG-HelpMenu
TestNG-SelectSite
TestNG-Add
2. Type “http://beust.com/eclipse” in the “Work with” edit box and click ‘Add’ button
3. In the ‘Name’ column we can see “TestNG” –> Select this and click ‘Next’ button
TestNG-Install
4.  Click Next and click on the radio button “I accept the terms of the license agreement”
5. Click ‘Next’ button
6. Click ‘Finish’
TestNG-Install wizard
This will install the TestNG plug-in for Eclipse
After the installation, it will ask for restart of Eclipse.  Then restart the Eclipse.
Once the Eclipse is restarted, we can see the TestNG icons & menu items as in the below figures.
TestNG-RunAs
TestNG-NewSelectWizard
TestNG-RunAsTest
It is very much clearly explained how to setup the TestNG with eclipse.  The screenshots make it easy to understand the setting up of TestNG. I hope this will help people who are eager to start using TestNG for their unit testing as well as UI Test Automation with Selenium.

1 комментарий: