0
我有幾種測試方法,我需要選擇其中一些作爲煙霧測試和其他迴歸測試。我如何在Testng selenium中創建條件/依賴項,因此煙霧測試將首先作爲一個組運行。我可以爲迴歸測試設置不同的Bamboo作業,並且只有在煙霧測試組通過時纔會運行。如何使用testng標記進行煙霧迴歸測試
這裏是我的測試:
@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是冒煙測試。所以如果他們通過別人將被執行。我怎樣才能做到這一點?