Pages

Friday, April 6, 2012

How to Add TestNG Plug-in to Eclipse for Selenium

Adding TestNG Plug-in to Eclipse for Selenium.


·         Run Eclipse.exe.
·         In Eclipse, Click at Help Tab in Menu bar.
·         In Help Tab Click at Install New Software. (Help -> Install New Software)
·         In Install window, Click Add button which is besides Work with Text Field.
·         In Add Repository Window, in Name field enter the Value TestNG and give the URL of the   TestNG Eclipse plug-in (http://beust.com/eclipse ) in Location field.
·         Click OK button.
·         Check the TestNG check box.
·         Click NEXT Button.
·         Again Click the NEXT Button.
·         Click Radio Button for I accept the term of the license agreement.
·         Click Finish Button.
·          It shows the Installing software Window after completion Restart Eclipse.
·         Add TestNG Jar file to the Eclipse. To add Jar file, download it from given URL.
·         Click this link you can get the TestNG Eclipse Jar file. http://testng.org/testng-eclipse-6.1.1.20110718_1435.zip
·         Unzip and Add the Jar file at Build path Libraries of the Project.
  • In BuildPath click at Configure BuildPath after  click at Libraries -> Click Add Library 
  • click at Junit and Click Next Button. Select Junit4 and Click Finish Button.
  • Click at TestNG and Click Next Button and Click finish Button.
  • Check Junit4 and TestNG libraries added at Libraries.
·         Restart the Eclipse
·         You can find, it was installed or not?   In Run -> Run As -> TestNG Test.

    No comments:

    Post a Comment