testng-team / testng-eclipse

Eclipse plug-in for TestNG
https://testng.org
194 stars 164 forks source link

Test NG plugin not showing up in preferences in Eclipse Oxygen #378

Open sunray2003 opened 6 years ago

sunray2003 commented 6 years ago

I installed test ng plugin in Eclipse Oxygen, I see it listed in Plugins. But I do not see it preferences or Eclipse/Show view menu. Any help is much appreciated.

Any relate message in "Error Log" view

eclipse.buildId=4.7.0.I20170612-0950 java.version=1.8.0_144 java.vendor=Oracle Corporation BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/balachan/.eclipse_keyring Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/balachan/.eclipse_keyring

org.eclipse.equinox.p2.metadata.repository Error Fri Jan 05 18:11:21 PST 2018 No repository found at http://download.eclipse.org/technology/m2e/releases-for-indigo/1.4/.

The Dependency Management tool for your project

missedone commented 6 years ago

@sunray2003, looks like you use Gradle, so you don't need to install the "TestNG M2E (Maven) Integration (Optional)", could you try uninstall it by naviating to "Eclipse (top left) -> About Eclipse -> Installation Details -> select "TestNG M2E (Maven) Integration (Optional)" -> click "Uninstall..." button.

let's see how is going after that.

jbliesener commented 6 years ago

Same problem here. M2E integration uninstalled, no change Win10 x64

missedone commented 6 years ago

@jbliesener, do you see any relate info in "Error Log" view?

jbliesener commented 6 years ago

See log attached error log.log

I also took a dump of the OSGi console status: OSGI Console.txt

missedone commented 6 years ago

thanks for the logs. looks like the testng plugin was not loaded at all.

how did you install the testng plugin? via "Help -> Install New Software...", or oomph ?

jbliesener commented 6 years ago

I installed the plugin through Eclipse Marketplace. It shows up in the plugins list:

image

jbliesener commented 6 years ago

image

image

missedone commented 6 years ago

@jbliesener , could you try to install testng plugin in a pure clean eclipse instance?

missedone commented 6 years ago

@jbliesener , noticed that you installed your eclipse instance at c:\Program Files\Eclipse-Oxygen, could you check if this SO answer helps or not:

It all boils down to these two options:

  • Install Eclipse to a folder where your user has full rights or
  • Start Eclipse as an administrator

https://stackoverflow.com/a/3448786/4867232

jbliesener commented 6 years ago

Eclipse has been installed from the standard download package (Oomph), which puts it into c:\program files\Eclipse-Oxygen.

I have tried to run it as admin, no change.

missedone commented 6 years ago

@jbliesener , i just grab a Win 8.1 x64 machine, with oomph installer, if install eclipse to c:\Program Files\, i can reproduce your issue. if install to the default location, "c:\Users\nick\eclipse", the testng eclipse plugin correctly installed and loaded.

so i'm second to the SO answer that you'd better install the eclipse instance to your user home (at least, not the system locations)

jbliesener commented 6 years ago

While I understand this as a workaround, I believe the plugin should work in all types of installation. It looks like it's trying to write to the program directory, which is restricted to admins, right?

Is there another way to write whatever is necessary (preferences etc)? The SO issue, as well as the referenced DZone article are 5 and 7 years old, can't believe that this is still a problem. Many other plugins work in this configuration...

SupunDileepa commented 6 years ago

Hey I also faced the same situation. the problem is version of the eclipse.TestNG is not working under eclipse oxygen version(4.7.2).After I installed the Neon.3 (4.6.3) my problem is solved.Hope this post will help you.

missedone commented 6 years ago

@dileepa1995 , on which oxygen distro you encountered the issue? i'm using oxygen jee package for mac, all works well.

SupunDileepa commented 6 years ago

Previously used oxygen java EE package for windows,testNG not worked for me. Now tsetNG perfectly works for Neuon.3

lkamb commented 6 years ago

I am using : Eclipse Java EE IDE for Web Developers. Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200 on Mac OSX High Sierra 10.13.3

installed into /Application/Eclipse-oxy.app : -- TestNG listed in installed software but does not show up in Preferences or in Libraries.

Running from installed in /Applications/Eclipse.app : -- TestNG shows up fine.

Running Eclipse Neon (which I still do), installed into /Applications/Eclipse-neon.app : -- TestNG shows up fine.

Eclipse Kepler (Yes, sometimes I still have to run that) installed at /Applications/eclipse-4.3.2 -- TestNG is also happy.

tambellinila commented 6 years ago

I am seeing the same issue as @lkamb has there been any further update one this?

missedone commented 6 years ago

no update for now, no ETA yet

manishthackray commented 6 years ago

any update?

missedone commented 6 years ago

Can't reproduce the issue with eclipse-jee-oxygen-3a-macosx-cocoa-x86_64 on MacOs 10.13.8:

screenshot at aug 06 18-33-44
manishthackray commented 6 years ago

Thanks bro

Rajeevkumar89 commented 5 years ago

While installing TestNG, there is another option to install Maven support which is optional. select both of them It will work. Or

Install Eclipse Neon and add TestNG there, then install Eclipse Oxygen it will automatically detect the missing plugins and will ask you to install it. (Worked for me)

bid1995 commented 5 years ago

HI Please check have you installed TestNG framework if not then you can go to this link and follow the steps https://www.ecanarys.com/Blogs/ArticleID/169/How-to-Install-TestNG-framework-Step-by-Step-installation-process