How to install TestNG eclipse plugin offline?

2020-07-23 05:19发布

问题:

Anyone can help ?

I am having trouble, already unzipped the file I downloaded from the site in the dropins folder, but nothing happens !

I CANNOT use internet to install this, because of some very stupid proxy rules.

回答1:

If you can download the testng plugins, create in your dropins directory a structure similar to this one

/path/to/mydropins
      testng-eclipse-x.y/
         eclipse/
            features
               org.testng.eclipse_x.y.z.jar
            plugins/
               org.testng.eclipse_x.y.z.jar

With 'path/to/mydropins' a shared dropins repository referenced in your eclipse.ini with a:

-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/<myPath>/mySharedDropins

You need to copy both:

  • http://beust.com/eclipse/features/org.testng.eclipse_5.14.10.20110228_1533.jar
  • http://beust.com/eclipse/plugins/org.testng.eclipse_5.14.10.20110228_1533.jar


回答2:

Please try below options....
Option 1 : Follow steps in https://www.dev2qa.com/testng-eclipse-plugin/
Option 2 : If using Option 1, TestNG is not reflecting properly in eclipse option 3 from below URL https://www.techbeamers.com/install-testng-in-eclipse-ide/
The URL for downloading the Zip file is for version 6.11. If you need a higher version try http://dl.bintray.com/testng-team/testng-eclipse-release/zipped/ I had Version: Mars.2 Release (4.5.2) and TestNG 6.14.0 version worked for me.