不同类中的2个方法如何在testNG中使用方法依赖

时间:2016-02-05 17:05:21

标签: testng

我想从a和b类访问测试方法

Class a{
@Test(dependsOnMethods="verifyElementsOnProfileScreen",alwaysRun = true)
    public void verifyMySelfProfileVisibility(){}
}

class b
@Test(dependsOnMethods="testdemo",alwaysRun = true)
    public void verifyMySelfProfileVisibility(){}

0 个答案:

没有答案