方法一、首先新增一个.xml文件(经过一段时间的练习,找到其他方法添加XML,如下)

再到文件中添加如下:

<suite name = "Selenium school">

<test name ="test">
<classes>
<class name = "FristTestNG.ZooTest"/> //包名加类名不要后缀 .java
<class name = "TestNG.SecondTest"/>
</classes>
</test>
</suite>

TestNG,多个场景结合运行Suite.xml

 

方法二、找到需要运行的class(右键)-->TestNG-->Convert to TestNG

得到如下弹框。

Suite和Test我们自己命名;

Parallel mode:并行的模式有三种选择;

Thread Count:线程数;

TestNG,多个场景结合运行Suite.xml

 

相关文章:

  • 2021-06-11
  • 2021-12-23
  • 2018-05-19
  • 2023-03-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-12
猜你喜欢
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案