我有几种测试方法,我需要选择其中一些作为冒烟测试和其他回归测试。我如何在 Testng selenium 中创建条件/依赖关系,因此烟雾测试将首先作为一个组运行。而且我可以为回归测试设置不同的 Bamboo 作业,并且只有在烟雾测试组通过时才会运行。
这是我的测试:
@Test(priority=1)
public void test_1(){
----}
@Test(priority=2)
public void test_2(){
----}
@Test(priority=3)
public void test_3(){
----}
@Test(priority=4)
public void test_4(){
----}
@Test(priority=5)
public void test_5(){
----}
这里,test_1 到 test_3 是冒烟测试。所以如果他们通过其他人将被执行。我怎样才能做到这一点?