运行夜间构建时获取 System.Runtime.InteropServices.COMException

发布于 2024-08-04 15:46:01 字数 281 浏览 3 评论 0原文

目前我有2个虚拟测试服务器(win2003)。一种是部署在哪些网站上,另一种是进行所有测试。我已经使用 cc.net 设置了所有夜间构建。每当我在夜间构建上运行测试时。有些测试失败说 1. System.Runtime.InteropServices.COMException:RPC 服务器不可用。 (HRESULT 异常:0x800706BA。 2、有的出现超时异常。有时由于服务器超时而未设置测试装置。

任何人都有任何想法。为什么会导致这个问题,是否与两台机器的同步或任何特权或防火墙限制有关。

亲切的问候

Currently I have 2 virtual test servers(win2003). One is on which websites are deployed and other one has all the tests. I have setup all nightly build using cc.net. When ever I run tests on nightly builds. Some of the tests fail saying
1. System.Runtime.InteropServices.COMException : The RPC server is unavailable. (Exception from HRESULT: 0x800706BA.
2. While some got timeout exception. while some times testfixtures is not set up due to timeout on server.

Any one has any idea. Why it is causing this problem, is there any thing to do with synchronisation of 2 machines or any privileges or firewall restirction.

Kind regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

拥抱我好吗 2024-08-11 15:46:01

我在其中一项测试中得到了相同的 System.Runtime.InteropServices.COMException 。但是对于超时,我通过扩展超时属性解决了它(WatiN 2.0)

[SetUp] \\for NUnit but you can change with you own testing engine
public void EachSetup()
{ 
 Settings.AutoCloseDialogs = true;
 Settings.AttachToIETimeOut = 300;
 Settings.WaitForCompleteTimeOut = 300;
 Settings.WaitUntilExistsTimeOut = 300;
}

i got the same System.Runtime.InteropServices.COMException on one of my test. But for the timeout, i solved it by expanding the timeout property (WatiN 2.0)

[SetUp] \\for NUnit but you can change with you own testing engine
public void EachSetup()
{ 
 Settings.AutoCloseDialogs = true;
 Settings.AttachToIETimeOut = 300;
 Settings.WaitForCompleteTimeOut = 300;
 Settings.WaitUntilExistsTimeOut = 300;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文