首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >让JSUnit、蚂蚁和哈德逊正常工作

让JSUnit、蚂蚁和哈德逊正常工作
EN

Stack Overflow用户
提问于 2011-09-24 07:37:15
回答 1查看 256关注 0票数 1

我正在尝试让我的JSUnit测试在Hudson上运行。

但是浏览器总是超时:

代码语言:javascript
复制
[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,它会得到预期的结果:

代码语言:javascript
复制
[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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-10-04 05:50:07

好吧,事实证明这是一个权限问题。

要让它运行,我必须将Hudson使用的Service帐户更改为具有更高权限的帐户。

停止/重新启动服务,它起作用了。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7535885

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档