0
[TestNG]無法運行硒測試。無法運行硒測試
這是我的testng.xml
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite name="Suite1" verbose="1" >
<test name="Regression1" >
<packages>
<package name="com.example.tests" />
</packages>
</test>
</suite>
當我運行run_testNG螞蟻任務,我得到
Buildfile: build.xml
prepare:
compile:
run_test:
[waitfor] Wait for proxy server launch
start-server:
run_testNG:
[testng] [TestNG] Running:
[testng] /softwares/cruisecontrol-bin-2.8.3/run_test/testng.xml
[testng]
[testng]
[testng] ===============================================
[testng] Suite1
[testng] Total tests run: 0, Failures: 0, Skips: 0
[testng] ===============================================
[testng]
stop-server:
[selenium-shutdown] Getting: http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer
[selenium-shutdown] To: /softwares/cruisecontrol-bin-2.8.3/run_test/result.txt
[selenium-shutdown] DGF Errors during shutdown are expected
BUILD SUCCESSFUL
Total time: 1 second
它沒有運行任何測試。請讓我知道可能是什麼問題。如果你喜歡,我也可以分享我的build.xml。
你真的有一個名爲com.example.tests包的方法呢?如果你這樣做,請發佈一個在其中發現的測試課程。 – 2011-04-29 17:34:51