1. Eclipse integrated TestNG plug-in
a. Download the TestNG offline plug-in and unzip it to get two folders of features and plugins;
b. Put the file under the features Copy org.testng.eclipse_6.9.8.201510130443 to the D:\eclipse\features directory;
c. Copy org.testng.eclipse_6.9.8.201510130443 under the plugins file to D:\eclipse\ plugins directory;
Note: restart Eclipse, windows=”preferences=”TestNG
2, import testNG dependency package
a. Enter the maven central warehouse address : Https://mvnrepository.com/
b. pom.xml configuration under the Maven project
3. After the configuration is complete, create a new TestNGDemo
4 ,slightly!