Eclipse Install testng Plugin
What is testng?
TESTNG is defined by its documentation as:
TESTNG is a test framework that is inspired by JUnit and NUnit, but introduces some new features that make it more powerful and easier to use.
TestNG is an open source automation testing framework; TestNG represents the next generation. TestNG is similar to JUnit (especially JUnit 4), but it is not a junit extension. It was inspired by JUnit. It is designed to outperform JUnit, especially when testing an integrated class. The creator of TestNG is Cedric Beust (Cedric Boystedt). TestNG eliminates most of the limitations of the old framework, enabling developers to write more flexible and powerful tests. Because it draws heavily on the tests defined by the Java annotations (introduced by JDK5.0), it can also show you how to use this new functionality in a real Java language production environment.
Features of TestNG
- Annotations
- TestNG using Java and object-oriented features
- Support for comprehensive class testing (for example, by default, it is not necessary to create a new instance of the class that tests each test method)
- Independent compile time test Code runtime configuration/data information
- Flexible Run-time configuration
- The main introduction is "test Group". When compiling the test, just ask TestNG to run all the "front-end" tests, or "fast", "slow", "database", etc.
- Support for dependent test methods, parallel testing, load testing, local failure
- Flexible Plug-in API
- Supports multithreaded testing
Eclipse Installation TestNG
TESTNG website Address: http://testng.org/
Click on the "Download" link in the navigation area of the official web page, which describes the different ways to integrate testng.
The Eclipse plug-in section describes how two eclipse installation plug-ins are installed.
Hard requirements: JDK1.7 above version, Eclipse4.2 or above version.
Java 1.7+ is required for running, the TestNG for Eclipse plugin.
Eclipse 4.2 and above is required. Eclipse 3.x is not supported any more, please update your Eclipse to 4.2 or above.
Two kinds of online installation methods:
1, installation through Eclipse Marketplace;
Launch Eclipse TestNG for installation by dragging "Drag to your running Eclipse workspace to install marketplace for Eclipse" in your browser to connect to Eclipse's workspace Estng.
2, through the update site installation;
The plugin can also be installed via update site by tapping the Help menu in eclipse, selecting the Install New software option, and entering the installation address in the pop-up page to install.
Http://beust.com/eclipse
Installing TESTNG plugins offline:
By the network and other factors, the online installation method is slow, you can install the TestNG plugin offline by the following way.
Direct access to URLs via the browser, http://beust.com/eclipse
Select the bottom zipped folder link;
Select a version, such as: "6.10.0.201612030230/"
Click on the hyperlink to download the offline installation file.
After extracting the installation files to Eclipse's Dropin directory, restart Eclipse to complete the plug-in installation.
Verify that the plug-in installation is successful
Open Eclipse, create a new-other, and select "Testng-->testng Class".
This indicates that the plugin installation was successful.
Note: Transfer from: https://www.cnblogs.com/xusweeter/p/6559196.html
Eclipse Install testng Plugin