Testng installation and use

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/

  share picture

  b. pom.xml configuration under the Maven project

  share picture

3. After the configuration is complete, create a new TestNGDemo

share picture

share picture

4 ,slightly!

Leave a Comment

Your email address will not be published.