2009-09-11 36 views
1

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

任何人有任何想法,为什么它是造成这个问题,有没有什么事有两台机器的同步或任何特权或防火墙restirction。

亲切的问候

+0

请参阅[此问题](http://stackoverflow.com/questions/2464877/asp-net-unit-testing-watin-and-windows-7-internet-explorer-8/13085953#13085953)。 –

回答

0

我得到了相同的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; 
}