SUBSCRIBE HERE TO GET POST UPDATES VIA EMAIL :

Delivered by FeedBurner

Steps Of Downloading And Installing Testng In Eclipse For WebDriver

To use TestNG Framework in Eclipse, First of all we have to install it. Installation of TestNG software testing framework in Eclipse is very easy process. As I described in my previous post, TestNG is very powerful and easy to use framework and it is supported by tools like Eclipse, Maven, IDEA, etc.. Here we are going to use TestNG Framework with Eclipse so obviously you must have installed latest Java development kit (JDK) software in your system and you must have Eclipse. View THIS POST to know how to download and install JDK(Java) software in windows.

Once you have installed JDK and Eclipse in your system, You are ready to install TestNG in Eclipse. Bellow given steps will describe you how to install TestNG in Eclipse.

TestNG Installation Steps In Eclipse

Step 1 : Open Eclipse and go to Menu Help -> Install New Software.


It will open new software installation window as shown in bellow given image.

Step 2 : In new software installation window, Type URL = http://beust.com/eclipse exactly in Work with field and click on Add button as shown in bellow given image.


It will show you option TestNG with check box. Select that check box and click on Next Button as shown in above image.

When you click on Next button, it will check for requirements and dependency first.


When it completes requirement and dependency test, click on Next button. On Next screen, it will ask you to accept TestNg terms and license agreement. Accept it and click on Finish button as shown in bellow given image.
TestNG will take few minutes to finish its installation when you click on finish button.

Step 3 : Now you need to verify that TestNG is installed in your eclipse or not.
To verify Go to Eclipse's Menu Window -> Show View -> Others as shown in bellow given image.


It will open Show View window. Expand java folder as shown in bellow given image and verify that TestNG is available inside it or not. If it is there means TestNG is installed successfully in eclipse.


13 comments:

  1. I am waiting for the next post :)

    ReplyDelete
  2. It's really very helpful for beginner.

    ReplyDelete
  3. In Step 2 : after selecting the TestNG checkbox clicking on next button lads to error in my case. Please help, i am a beginner.

    Error I am facing is listed below:

    Cannot complete the install because one or more required items could not be found.
    Software being installed: TestNG M2E Integration (Optional) 6.9.10.201512240000 (org.testng.eclipse.maven.feature.feature.group 6.9.10.201512240000)
    Missing requirement: TestNG M2E Integration 6.9.10.201512240000 (org.testng.eclipse.maven 6.9.10.201512240000) requires 'bundle org.eclipse.m2e.core 1.5.0' but it could not be found
    Cannot satisfy dependency:
    From: TestNG M2E Integration (Optional) 6.9.10.201512240000 (org.testng.eclipse.maven.feature.feature.group 6.9.10.201512240000)
    To: org.testng.eclipse.maven [6.9.10.201512240000]

    ReplyDelete
    Replies
    1. Try with Eclipse Luna. For me it was solution to the same problem. I had old eclipse version.

      Delete
    2. Try with another eclipse version. For me it was a fix for to the same problem.

      Delete
    3. My issue got resolved when I used Eclipse Luna. I am really tankful Karoljagla for the help.

      Delete
  4. No need to try with other version. Just uncheck the TestNG M2E Integration(optional) in "confirm selected features" page & then click on next. Definitely it will get installed.

    ReplyDelete
  5. No need to try with other version. Just uncheck the TestNG M2E Integration(optional) in "confirm selected features" page & then click on next. Definitely it will get installed.

    ReplyDelete
  6. its install after unchecking TestNG M2E Integration(optional)

    ReplyDelete
  7. i am getting a problem .after add burtton......no chck box with testng instead it is showing add repository name & location

    ReplyDelete
  8. Hi All,
    you can install testNG in this way also.

    Step 1 : Open Eclipse and go to Menu Help -> Eclipse marketplace.
    Step 2: Type testNG under find option and click on go.
    Step 3: It will show TestNG for eclipse,click on install.

    ReplyDelete