通过 cc.net 执行测试期间 IE 挂起

发布于 2024-07-25 02:10:19 字数 162 浏览 5 评论 0原文

我已经经历了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦回梦里 2024-08-01 02:10:20

您是否尝试过以配置服务运行的用户身份登录 CC.NET 框并启动 IE? 您可能会发现有一个对话框用于指定初始选项,例如相关用户尚未在该计算机上确定的 Internet 连接。

详细说明:

建立到服务器的远程桌面连接,或者使用配置运行 CC.NET 服务的登录详细信息(如果您有权访问)以物理方式登录到服务器。 如果将其配置为作为本地系统帐户运行,您将需要将其配置为作为用户帐户运行才能使其正常工作。

进入计算机后,启动 Internet Explorer,我猜测您将看到用于设置 Internet 连接的对话框。 完成向导并确定一切。 然后再次注销。 现在,当您尝试运行 CC.NET 构建时,您应该会发现它可以工作。

替代方案:

您应该能够为本地系统帐户禁用此向导。 检查以下注册表值:

HKEY_USERS\S-1-5-18\Software\Microsoft\Internet Connection Wizard\Completed

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:

HKEY_USERS\S-1-5-18\Software\Microsoft\Internet Connection Wizard\Completed

This should have the REG_BINARY value 01 00 00 00. S-1-5-18 is the fixed SID for the Local System account.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文