2012-07-03 51 views
0

我無法在eclipse中使用testNG運行selenium2中的測試套件。 TestNG似乎運行,但Total測試運行始終爲0. 我能夠使用selenium2(運行as-> java應用程序)直接從eclipse運行此測試。 我能夠測試TestNG的與@Test,@ BeforeMethod,@ AfterMethod註釋的小程序 好心幫我 XML文件內容無法在testNG中運行selenium2套件

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" > 

<suite name="WikiPedia test" verbose="3" parallel="methods" > 

<test name="wiki"> 
    <classes> 
    <class name="com.programs.WebDriverTest" /> 
</classes> 
</test> 
</suite> 
+0

「run as-> java application」或「run as - > testng test」? –

回答

0

你需要運行爲... TestNG的測試,不作爲Java應用程序。

相關問題