Harisha K P
Harisha K P

Reputation: 357

Unable to install TestNG in eclipse using eclipse Market place or Install software

I'm unable to install TestNG in my eclipse.

  1. I tried from eclipse marketplace which gave the following error: "The following solutions are not available: TestNG for eclipse Proceed with the installation?" Screenshot: https://i.sstatic.net/mJ7OR.png , with Yes or No buttons if i click yes, it gives: "Cannot complete the request. See the error log for details."

  2. When I tried through Install New Software options, it doesn't display testNG icon in the list as it supposed to..

Is there any solution for this or any alternate way to install?

Upvotes: 9

Views: 62401

Answers (7)

Shashi
Shashi

Reputation: 61

Follow below steps:

  1. Install TestNG zip folder from below location https://testng.org/testng-eclipse-update-site/zipped/7.4.0.202106051955/org.testng.eclipse.updatesite.zip

  2. GoTo Help ==> Install New Software

  3. Click on Add Button

  4. Enter Name and Add Downloaded zip folder location in Location text box

  5. Click on Add Button

  6. It will scan and display TestNG

  7. Now select TestNG and next and default things.

Upvotes: 3

Shubham Jain
Shubham Jain

Reputation: 17553

- Download the latest eclipse from below currently it is 2020-03

https://www.eclipse.org/downloads/

- To install TestNG

  1. Click "Help -> Install New Software..." on top level menu
  2. Paste the url (Check the source below for latest supporting URL)

https://testng.org/testng-eclipse-update-site

to Work with: text field and press enter.

  1. Select the plugins

  2. Click "Next" button and accept the license to complete the installation.

  3. Restart Eclipse

Source:

https://github.com/cbeust/testng-eclipse#install-snapshot

- To install cucumber

  1. Type in name “Cucumber”
  2. Type “http://cucumber.github.com/cucumber-eclipse/update-site” as
    location.
  3. Click OK.

Upvotes: 4

shubham
shubham

Reputation: 21

Here is the latest link , please share and help others, i spent 2 days facing this stupid issue

go to help > install software > put this link in " work with :" and add proceed next

https://testng.org/testng-eclipse-update-site/

Upvotes: 1

Amitkumar Rasal
Amitkumar Rasal

Reputation: 11

Use site - "https://testng.org/testng-eclipse-update-site/" instead of http://beust.com/eclipse/. I have also added below configuration in eclipse configuration file. -Djava.net.preferIPv4Stack=true

This worked for me.

Upvotes: 1

Shubham Awasthi
Shubham Awasthi

Reputation: 91

The new link for install softwares has been updated recently.

Refer : https://testng.org/doc/download.html

New steps: Goto Help->Install New Software

Type http://dl.bintray.com/testng-team/testng-eclipse-release/. in "Work with" field and Click Add

Once you click on "Add", it will display the screen, enter the Name as "TestNG".

After clicking on "OK", it will scan and display TestNG with 3 files

Now select TestNG and next next and follow eclipse steps

Upvotes: 9

abhimanyu jha
abhimanyu jha

Reputation: 11

Those who are using some of the latest version of Eclipse like 2019.06 which I am using, will face issue in downloading TestNG through Eclipse MarketPlace.

WorkAround:

  • Goto Help->Install New Software
  • Type http://beust.com/eclipse/ in Work with field and Click Add
  • Once you click on "Add", it will display the screen, enter the Name as "TestNG".
  • After clicking on "OK", it will scan and display TestNG
  • Now select TestNG and next next and default things.

TestNG will get installed.

Upvotes: 1

kanak kumari
kanak kumari

Reputation: 126

was facing same issue as i was unable to install same from market and install option. Finally it helped me to sole the issue by following 3rd method listed in below link.

https://www.techbeamers.com/install-testng-in-eclipse-ide/#method3

Install TestNG In Eclipse IDE Via Offline Jar Files.

First step:

Firstly download the latest TestNG Jar files from the link given below. We’ve provided the direct URL to download the TestNG version 6.11.

Clicking on the link will download the “site_assembly.zip” file for the TestNG version 6.11. This file contains two folders named as “features” and “plugins“.

The features folder contains the following two files.

org.testng.eclipse.maven.feature_6.11.0.201703011520.jar org.testng.eclipse_6.11.0.201703011520.jar The plugins folder contains these two files.

org.testng.eclipse.maven_6.11.0.201703011520.jar org.testng.eclipse_6.11.0.201703011520.jar Note – You can check for more recent releases of TestNG

Second step:

Go to the eclipse installation directory and look for the “dropins” folder there. Create a folder inside the dropins folder and name it as “testng-eclipse-6.11“. 6->Major version & 11->Minor version of the TestNG plugin.

Extract the “site_assembly.zip” file and copy its content i.e. the “features” and “plugins” folders to the newly created “testng-eclipse-6.11” directory. The eclipse install directory would now look like this or similar to this.

C:\Users\techbeamers\eclipse jee-neon\ dropins\ testng-eclipse-6.11\ features\ org.testng.eclipse.maven.feature_6.11.0.201703011520.jar org.testng.eclipse_6.11.0.201703011520.jar plugins\ org.testng.eclipse.maven_6.11.0.201703011520.jar org.testng.eclipse_6.11.0.201703011520.jar

Note – We’ve tested this option with the Eclipse Neon/juno version.

Third step:

Last but not the least, you will need to restart or start the Eclipse to see the TestNG plugin getting loaded into the IDE. However, the process would be slightly slow as the Eclipse will first time load the new plugin.

From Eclipse, by pressing CTRL+N, you can open the “New” wizard. It will load the list of all available module/project templates. By scrolling down in the list, you can make sure that it has the “TestNG” option.

Upvotes: 10

Related Questions