How to install TestNG in eclipse Kepler - eclipse

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?

It is working fine on my machine. I just installed TestNG on my eclipse by following the steps below:
Click on Help > Install New software
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.
Tick the check box of TestNG
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.

TestNG can also be installed in Eclipse by using "Eclipse Marketplace..." Below are the steps:
Open eclipse
Go to Help -> Eclipse Marketplace...
Do search for TestNG (Type the text TestNG in Find text box > Click Go button)
After searching: Click Install button at TestNG for Eclipse area
Follow the further instructions by eclipse
After successful installation: Go to Window -> Preferences. TestNG is enlisted at the left panel in pop-up.

Download Testng.jar and add testng jar as external-lib in eclipse. Eclipse will identify the testng.

Currently, TestNG is not available at https://beust.com/eclipse
To install TestNG in Eclipse version – 2019-03 or above, You can follow these steps:
Go to Window > Install New Software.
Enter https://testng.org/testng-eclipse-update-site/<TestNG Version> Refer to this site for TestNG Version: https://testng.org/testng-eclipse-update-site/
Select TestNG Options and Accept the agreement. Once you complete the process, TestNG will get installed.
Reference: https://testng.org/doc/download.html

Related

TestNG will not install on Rad 8.5

I am trying to install TestNG on Rad 8.5. I go to Help->Install new software and then put http://beust.com/eclipse/ in the Work with: window and click on Add. I then put TestNG as the Name: in the Add Repository window which pops up. When I click OK nothing is listed to install so I can't finish the installation. http://beust.com/eclipse/ is listed on the Available Software Sites page but TestNG is not an option when I look at File->New. All of the help pages I can find deal with Eclipse and say this is how to do it. Normally Eclipse instructions work with Rad but something isn't working this time. Any help would be appreciated.
EDIT:
I found a way to add Eclipse Marketplace to Rad at Add Eclipse Marketplace to Rad but when I tried to use it I got an error message saying the following connectors are not available: TestNG for eclipse so there must be something wrong with the site. Is there a way to check?

Installing Findbugs plugin for MyEclipse

I am trying to install Findbugs plugin for MyEclipse 6.0.1 using follwing steps:
In Eclipse, click on Help -> Software Update -> Find and Install...
Choose the Search for new features to install option, and click Next.
Click New Remote Site.
Enter the following:
Name: FindBugs update site
URL: one of the following (note: no final slash on the url)
http://findbugs.cs.umd.edu/eclipse for official releases and click OK.
"FindBugs update site" should appear under Sites to include in search.
Click the checkbox next to it to select it, and click Finish.
As soon as I click Finish eclipse shows me error saying "No features found on selected sites".
Can anyone plz tell me how should I proceed for Findbugs plugin inatallation in MyEclipse v6.0.1.
MyEclipse 6.6 is based on eclipse 3.3, so I assume 6.0 is also based on eclipse 3.3. That version of MyEclipse is now unsupported. However, you might be able to download the Findbugs plugin from here (which also list several update sites) and install it manually. I don't recall how to add plugins manually to eclipse 3.3 but there is probably a section in the help that comes with MyEclipse.

Where is the TestNG eclipse plugin

Where to find 5.x Testng eclipse plugin
Problem Installing older TestNG plugin on Eclipse 3.5
Both questions are quite old so the links there do not work anymore. I have Eclipse 3.5 and I would like to install the Eclipse TestNG plugin. What is the location of the update site? I am moving to TestNG so I can move the latest version of TestNG
PS: I have tried http://beust.com/eclipse/ but it throw me an NPE as shown below
Try to download TestNG plugin from Market Place.
Eclipse - > Help - > Eclipse MarketPlace -> TestNG..
Install it. After restarting Eclipse use it.
Try the URL that the jar comes from: http://beust.com/eclipse/
Use that above link as the Location, make sure to include the http://.
I used the latest url posted on the following page http://beust.com/eclipse-old/
That is http://beust.com/eclipse-old/eclipse-6.7.0.20120825_1316/
It worked perfectly fine.
Your URL looks fine (http://beust.com/eclipse) hence I suspect an issue unrelated to this, maybe your Eclipse installation is buggy or incorrectly configured (I did not need any special config on my Eclipse install though).
IN windows how to install testng plugin in Eclipse:
1. Open Eclipse
2. Click on Help at top menu
3. Click on Install New Software... sub-menu
4. Click on Add button
Do the following at Add Repository pop-up:
5. Enter name as (Example - testng)
6. Enter URL as your requirement:
For Eclipse 3.4 and above, enter http://beust.com/eclipse
For Eclipse 3.3 and below, enter http://beust.com/eclipse1
7. Click on OK button
8. Check process bar is displayed because plugin is installed in eclipse
After installation follow the steps below:
i) Restart eclipse
ii) Go to Window-> Preferences and observe the left panel
iii) TestNG is enlisted
I noticed it was proxy that was stopping for installation after configuring proxy it installed like cream.
earlier comment:
After a lot of attemp and trying different URL finally found the URL worked for me : http://beust.com/eclipse-old/eclipse-6.7.0.20120825_1316/
all other URL kept on giving error for MD5 example:
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Problems downloading artifact: osgi.bundle,org.testng.eclipse,6.9.11.201604020423.
MD5 hash is not as expected. Expected: da03b0c2cd24e2636ad05a151538b195 and found 60ea74539d11470e704c4210de6e5573.
Problems downloading artifact: osgi.bundle,org.testng.eclipse.maven,6.9.11.201604020423.
MD5 hash is not as expected. Expected: 91946a86a2a3ae80d8583be62a9fe068 and found 0f70e9fd8a1bb2564f26bc4730a58922.
if the link: http://beust.com/eclipse/ is not working for versions 3.4 and above, there could be some problem with the Network Connections of your eclipse.
Go to Window->Preferences-> search for SSL or Network Connections.
Check if the settings for the same are in place as per your internet/intranet.
open Eclipse
CLick on Help at top navigator
Click on install new software
Click on add Button
Add Repository pop-up is open
Enter name as (Example - TestNG)
Enter URL - http://beust.com/eclipse
Click on OK button
Check process bar is displayed because plugin is install in ecplise
After restart the eclipse
Check Testng is install in ecplise
For eclipse Luna - http://marketplace.eclipse.org/content/testng-eclipse/metrics
Drag and drop the install icon to the eclipse workspace and follow instructions.
Works like charm.
In my case, looks like updates for Eclipse was the issue.
I just installed the updates to my eclipse (Luna Service Release 2 (4.4.2) Build id: 20150219-0600) and restarted Eclipse.
Then, went to help->Eclipse Marketplace-> searched TestNG and Installed it.
This worked for me.
The given site "http://beust.com/eclipse" gets redirected to
http://dl.bintray.com/testng-team/testng-eclipse-release/
because of that eclipse fails to fetch the plugin in the original URL.
to fix that, go to help->install new software
now add new site at work with
"https://dl.bintray.com/testng-team/testng-eclipse-release/"
it is "https", doing this will list down the plugins available in the URL,
select TestNG, and continue to install it.
it worked for me, hope it works for you as well.

Eclipse File>Import "Other" missing for Maven 2 plugin

In attempting to follow the instructions on Using Eclipse with Maven in order to use Scala and Lift:
You’ll need to download and install Eclipse for Java or Java EE.
I first installed Eclipse on lubuntu 11.10 using the Synaptic Package Mananger.
The version I am using is "Eclipse Platform Version: 3.7.0 Build id: I20110613-1736". Then the instructions say to install M2Eclipse:
Then install the M2Eclipse, Scala IDE, and M2Eclipse-Scala plugins.
So I followed the link to M2Eclipse where there is a video which says to use "File>Import" which should display a list of choices which includes "Other" in the "Import" window. These instructions are at time stamp "00:55" in the video. My "Import" window only lists "-General -CVS -Install-Pligin -Plugin-Development -Run/Debug -Team".
What am I missing?
Not all Eclipse versions have Maven2 preinstalled. You can check if it is installed in Eclipse via menu Help > About Eclipse. Check if there is an icon with the text m2, or alternatively click on "Installation details" and check the "Features" tab.
After you've installed it you will have new options in the File > Import menu.
Install M2Eclipse via menu Help > Install new software. Then click on the add button and add a site with location http://m2eclipse.sonatype.org/sites/m2e. Wait until contents are retrieved and check the items you want to install.

How to install TestNG plug-in for Eclipse

I tried installing the testng plug-in for long time but eclipse is showing an error as below:
"No repository found as the location".
I have also tried to download and install the plug-in but the same error pops up.
Way 1: For the Eclipse plug-in, we suggest using the update site:
Open Eclipse
Go to Help -> Install New Software...
Click Add button to go to Add Repository prompt
Enter Name as TestNG. In Location text box, enter the following URL -> Click Add button
http://dl.bintray.com/testng-team/testng-eclipse-release/
Make sure the check box in the list is checked and click Next.
Eclipse will then guide you through the process.
After installation follow the steps below:
Restart eclipse
Go to Window-> Preferences and observe the left panel
TestNG is enlisted
For Installation details visit the following site:
http://testng.org/doc/download.html
Way 2: TestNG can also be installed in Eclipse by using Marketplace. Below are the steps:
Open eclipse
Go to Help -> Eclipse Marketplace...
Do search for TestNG (Type the text TestNG in Find text box > Click Go button)
After searching: Click Install button at TestNG for Eclipse area
Follow the further instructions by eclipse
Maybe you misspelled the URL of the update site?
It's http://beust.com/eclipse
If you are trying to install from http://beust.com/eclipse and it won't work, delete spaces in the string :-)
To install TestNG in Eclipse, follow the steps below :
Go to 'Help'
Click on 'Install New software'
Click on 'Add'
Enter Location - https://dl.bintray.com/testng-team/testng-eclipse-release/
Click Next and Finish
Restart Eclipse.
Copy the link http://beust.com/eclipse to notepad and copy from notepad to eclipse IDE. It worked :) Looks like using it as a hyperlink has issue.