我正在尝试让我的 JSUnit 测试在 Hudson 上运行。
但是浏览器一直超时:
[junit] INFO: Launching Internet Explorer on http://localhost/jsunit/testRunner.html?testPage=localhost/jsunit/tests/jsUnitOnLoadTests.html&autoRun=true&browserId=0&submitResults=localhost:8081/jsunit/acceptor
[junit] 24/09/2011 9:29:14 AM net.jsunit.TestRunManager runTests
[junit] INFO: Waiting for Internet Explorer to submit result
[junit] 24/09/2011 9:30:15 AM net.jsunit.TimeoutChecker run
[junit] WARNING: Browser Internet Explorer timed out after 60 seconds
如果我使用 IE、Firefox 或 Chrome,我会得到相同的结果。
如果我从命令行运行 ANT,它会得到预期的结果:
[junit] INFO: Launching Internet Explorer on http://localhost/jsunit/testRuner.html?testPage=localhost/jsunit/tests/jsUnitOnLoadTests.html&autoRun=true&broserId=0&submitResults=localhost:8081/jsunit/acceptor
[junit] 24/09/2011 9:28:58 AM net.jsunit.TestRunManager runTests
[junit] INFO: Waiting for Internet Explorer to submit result
[junit] - Could not load portlet-api, disabling webwork's portlet support.
[junit] 24/09/2011 9:29:00 AM net.jsunit.action.ResultAcceptorAction execute
[junit] INFO: Received submission from browser Internet Explorer
我使用的单元测试是 JSUnit 附带的默认值:failingTest.html & jsUnitOnLoadTests.html
我不认为这是许可的事情,(因为我可以从命令行运行它)。
操作系统:Windows 7、Java 1.6.0 更新 26、ANT 1.8.2