我試圖執行以下testng套件。運行多重測試的TestNG套件
下面的代碼是的testng.xml
<suite name="Suite" parallel="none">
<test name="Module 1">
<classes>
<class name="com.testcases.Class1" />
</classes>
</test>
<test name="Module 2">
<classes>
<class name="com.testcases.Class2" />
</classes>
</test>
</suite>
而且,確實有這個類的代碼片段,如下所示:
public class Class 1{
@Test(dataProvider = "getdata")
public void DoClass1(Hashtable<String, String> data){
Some Code
}
@DataProvider
public Object[][] getdata() {
return TestUtil.getdata(Module, xls);
}
@AfterTest
public void close()
{
driver.quit(); //Using to Close the FireFox
}
同樣地,我有守則的Class2現在當
我使用以下步驟運行套件:
1級 - 打開瀏覽器
導航類2 - 打開瀏覽器 導航
雖然1個行駛成功運行的套件類和關閉Firefox瀏覽器。 對於第2類 - 提示無法打開瀏覽器。
請幫助需要更改/更新的內容。
您打開瀏覽器的位置, – 2014-10-17 05:07:59