通过 cc.net 执行测试期间 IE 挂起
我已经经历了 IE 挂起很长时间了。 当我直接通过 nunit 执行测试时,它工作得很好。 但是当我尝试通过 cc.net 执行它们时,它们似乎在某个时刻无缘无故地挂断了。 它会在此时停止执行所有测试。 甚至不要运行我关闭 IE 的拆卸装置。
任何人都可以在这方面帮助我吗?
I am experiencing IE hangup since long. When I execute my tests through nunit directly, it works fine. but when I try to execute them through cc.net they seems to hangup at some point and without any reason. It stops the execution of all tests at that point. And even dont run the teardown fixture in which I am closing IE.
Can anyone plz help me in this regard.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过以配置服务运行的用户身份登录 CC.NET 框并启动 IE? 您可能会发现有一个对话框用于指定初始选项,例如相关用户尚未在该计算机上确定的 Internet 连接。
详细说明:
建立到服务器的远程桌面连接,或者使用配置运行 CC.NET 服务的登录详细信息(如果您有权访问)以物理方式登录到服务器。 如果将其配置为作为本地系统帐户运行,您将需要将其配置为作为用户帐户运行才能使其正常工作。
进入计算机后,启动 Internet Explorer,我猜测您将看到用于设置 Internet 连接的对话框。 完成向导并确定一切。 然后再次注销。 现在,当您尝试运行 CC.NET 构建时,您应该会发现它可以工作。
替代方案:
您应该能够为本地系统帐户禁用此向导。 检查以下注册表值:
REG_BINARY 值应为 01 00 00 00。S-1-5-18 是本地系统帐户的固定 SID。
Have you tried logging on to the CC.NET box as the user under which the service is configured to run and firing up IE? You'll probably find that there is a dialog to specify initial options like Internet connection that the user in question hasn't yet OKed on that machine.
Detailed instructions:
Make a remote desktop connection to the server, or log on to it physically if you have access, using the logon details under which the CC.NET service is configured to run. If it is configured to run as the local system account, you will need to configure it to run as a user account instead to get this working.
Once on the machine, fire up Internet Explorer, and my guess is that you will be presented with the dialog for setting up your Internet connection. Go through the wizard and OK everything. Then log off again. Now, when you try to run your CC.NET build, you should find it works.
Alternative:
You should be able to disble this wizard for the local system account. Check the following registry value:
This should have the REG_BINARY value 01 00 00 00. S-1-5-18 is the fixed SID for the Local System account.