如何在硒中运行高优先级测试

问题描述 投票:-1回答:1

我们如何只能在硒中运行高优先级的测试脚本。

示例:我有5个测试,登录,下订单,更改订单,加票,注销。

现在,我要运行的优先测试用例是登录,下订单,加价单。

有没有在testNG中不使用包含/排除标签的方法吗?

java selenium testng ui-automation
1个回答
0
投票

使用priority注释的@Test参数。优先级较低的将优先安排。参见-https://testng.org/doc/documentation-main.html

© www.soinside.com 2019 - 2024. All rights reserved.