eclipse install testNG online

TestNG is an open source automated testing framework with powerful functions and an enhanced version of Junit. TestNG did not exist until Junit was used for many years. NG stands for "Next Generation". TestNG is similar to JUnit (especially JUnit 4), but it is not a JUnit extension. Its inspiration comes from JUnit. Its purpose is better than JUnit, especially when testing integrated classes. The creator of TestNG is Cedric Beust (Cedric Beust). TestNG removes most of the limitations of the old framework, allowing developers to write more flexible and powerful tests. Because it largely borrows the Java annotations (introduced by JDK5.0) to define the test, it can also tell you how to use this new feature in a real Java language production environment

1. Open eclipse through help—> Install new software

 

 

2. Enter http://dl.bintray.com/testng-team/testng-eclipse-release/ in the browser , select the version above 6.11, the testNG lower than this version has bugs

 

 

 

 

 

3. The latest version is installed by default, without removing the first check

3. You can choose the version to install. The testng plugin and testng version should be the same. Do not use the latest version.

 

 

 

 4.yes restart eclipse

5. Check if testng is installed successfully: File> New> Other can create testNG project

 

 6. Set the encoding

-Dfile.enconding=UTF-8

 

 By the way, set eclipse to utf-8! ! ! reference"

 

If you get an error, you can reinstall it. Pay attention to the prompt message. If you need to uninstall, uninstall the files under the clean installation path.

If the network speed is slow and the installation fails, uninstall it and install it again.

 

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/xl95/p/12721566.html