一、新建一个项目
二、pom文件引入testNG
在maven配置下填上镜像会快些
<mirrors>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.0.0</version>
<scope>test</scope>
</dependency>
三、编写一个简单的测试hello world
四、添加配置
①
②添加testNG
③关联类
六、执行用例
七、执行结果