2011-09-23 43 views
1

我試圖讓我的JSUnit測試在哈德森上運行。獲取JSUnit,Ant&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

回答

1

好吧,事實證明,這是一個權限問題。

爲了得到這個跑,我有服務帳戶哈德森用一個提升的權限更改。

停止/重新啓動服務,它的工作。