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>
「run as-> java application」或「run as - > testng test」? –