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?
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.
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.
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.
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.
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.
It is working fine on my machine. I just installed TestNG on my eclipse by following the steps below:
Add the link http://beust.com/eclipse in Work with text box as shown below.
TestNG feature will be shown, expand the tree node then verify the version.
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.
TestNG can also be installed in Eclipse by using "Eclipse Marketplace..." Below are the steps:
After successful installation: Go to Window -> Preferences. TestNG is enlisted at the left panel in pop-up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With