1.简介
TestNG是一个测试框架。利用TestNG来测试一般会分成3步:
a.编写测试业务脚本,并且在脚本中插入TestNG注解
b.创建testng.xml,添加测试信息,指定要运行的脚本
c.执行TestNG(可以结合工具来使用,例如Jenkins)
2.TestNG注解
a.Before and After注解

b.DataProvider注解

c.Factory注解

d.Parameters注解

e.Test注解

1.简介
TestNG是一个测试框架。利用TestNG来测试一般会分成3步:
a.编写测试业务脚本,并且在脚本中插入TestNG注解
b.创建testng.xml,添加测试信息,指定要运行的脚本
c.执行TestNG(可以结合工具来使用,例如Jenkins)
2.TestNG注解
a.Before and After注解
b.DataProvider注解
c.Factory注解
d.Parameters注解
e.Test注解
本文标题:TestNg Beginner's Guide--阅后总结之Te
本文链接:https://www.haomeiwen.com/subject/zblsmttx.html
网友评论