我们如何只能在硒中运行高优先级的测试脚本。
示例:我有5个测试,登录,下订单,更改订单,加票,注销。
现在,我要运行的优先测试用例是登录,下订单,加价单。
有没有在testNG中不使用包含/排除标签的方法吗?
使用priority注释的@Test参数。优先级较低的将优先安排。参见-https://testng.org/doc/documentation-main.html
priority
@Test