我正在尝试让我的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
发布于 2011-10-04 05:50:07
好吧,事实证明这是一个权限问题。
要让它运行,我必须将Hudson使用的Service帐户更改为具有更高权限的帐户。
停止/重新启动服务,它起作用了。
https://stackoverflow.com/questions/7535885
复制相似问题