Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install TestNG in eclipse Kepler

Tags:

eclipse

testng

I am trying to install TestNG (which I have never used before) in eclipse Kepler (4.3). I've tried to follow the directions provided on the TestNG site (http://testng.org/doc/download.html), but they do not work. The link (http://beust.com/eclipse/) just takes me to a page with a jar file. My experience is that when you use the installer within eclipse, it expects to be provided with a "p2" repository site. If I try to set up a site with the address provided, it fails.

On a related note, do I need to install TestNG as something additional (outside eclipse), or is the eclipse plug-in sufficient?

like image 994
Joseph Gagnon Avatar asked Mar 11 '14 14:03

Joseph Gagnon


People also ask

Do we need to install TestNG in eclipse?

TestNG is based on Java and you need to install it in case you haven't already. Now to begin with the installation of TestNG plugin for Eclipse, you need to launch Eclipse IDE and then follow these steps. Step #1: Once Eclipse is launched, click on Help and then Eclipse Marketplace.

Why TestNG is not showing in eclipse?

How to enable TestNG launch configurations in Eclipse IDE (Windows) Go to the top menu bar and select Window | Preferences. In the left pane, select Run/Debug | Launching | Launch Configurations. On the right side, make sure that Java Application and TestNG are shown and not checked.

How do I check if Eclipse is TestNG installed?

Note: Once the installation is completed, we can check if TestNG is installed properly or not. To do that, go to the Windows Menu bar, click on Show View and then click on Other as shown below. Expand the Java Folder and see if TestNG is available as shown below.

Why am I not getting option to run as TestNG?

You have to install the TestNG package from the eclipse marketplace to see the option. ( Only adding dependency in pom. xml does not show the run as "TestNG suite" option.

Which Eclipse version is compatible with TestNG?

The following installation process uses Eclipse Version 4.14. 0 as on Mar'20 to install TestNG. Launch the Eclipse IDE and click “Install New Software” in the Help menu. You will see a new installation dialog window, click the "Add" button.


2 Answers

It is working fine on my machine. I just installed TestNG on my eclipse by following the steps below:

  1. Click on Help > Install New software
  2. Add the link http://beust.com/eclipse in Work with text box as shown below. enter image description here

  3. TestNG feature will be shown, expand the tree node then verify the version.

  4. Tick the check box of TestNG
  5. Click on Next button then Finish button.

I guess you enter wrong software update site. Remove the / and extra spaces around the link "http://beust.com/eclipse/" then try.

Nothing to install outside eclipse.

like image 192
Chandrayya G K Avatar answered Oct 28 '22 17:10

Chandrayya G K


TestNG can also be installed in Eclipse by using "Eclipse Marketplace..." Below are the steps:

  1. Open eclipse
  2. Go to Help -> Eclipse Marketplace...
  3. Do search for TestNG (Type the text TestNG in Find text box > Click Go button)
  4. After searching: Click Install button at TestNG for Eclipse area
  5. Follow the further instructions by eclipse

After successful installation: Go to Window -> Preferences. TestNG is enlisted at the left panel in pop-up.

like image 27
Ripon Al Wasim Avatar answered Oct 28 '22 15:10

Ripon Al Wasim