Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

testng

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: http://i.stack.imgur.com/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?

like image 716
Harisha K P Avatar asked Jul 24 '13 10:07

Harisha K P


4 Answers

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

like image 62
Shubham Awasthi Avatar answered Nov 14 '22 12:11

Shubham Awasthi


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.

like image 8
kanak kumari Avatar answered Nov 14 '22 13:11

kanak kumari


- 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.
like image 4
Shubham Jain Avatar answered Nov 14 '22 14:11

Shubham Jain


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.

like image 1
abhimanyu jha Avatar answered Nov 14 '22 14:11

abhimanyu jha