获取SetUp方法失败。 System.Runtime.InteropServices.COMException
我正在运行的测试需要每次打开一个新的 IE 实例来进行新的测试。 我的第一个测试通过并在最后关闭 IE,然后我的下一个测试必须打开一个新的 IE,但它在那时失败并
SetUp method failed. System.Runtime.InteropServices.COMException : Creating an instance of the COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 800704a6.
at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, LogonDialogHandler logonDialogHandler, Boolean createInNewProcess)
在 WatiN.Core.IE..ctor() 上
给我以下错误,我目前正在使用它们运行teamcity v5.1.4、nunit 2.5.5、watin 2.0 在带有 .net Framework 3.5 的 Windows 7 计算机上
以下是失败的代码。
<TestFixtureSetUp()> _
Public Sub Setup()
System.Threading.Thread.Sleep(100)
_internetExplorer = New IE()
LoginUser()
CheckForDataBase()
End Sub
<TestFixtureTearDown()> _
Public Sub TearDown()
Logout()
_internetExplorer.Close()
End Sub
知道这可能是什么原因吗
I am running tests that needs to open a new instance of IE everytime for new test.
My first test passes and closes the IE at the end and then my next test has to open a new IE but It failing at that point and giving me following error
SetUp method failed. System.Runtime.InteropServices.COMException : Creating an instance of the COM component with CLSID {0002DF01-0000-0000-C000-000000000046} from the IClassFactory failed due to the following error: 800704a6.
at WatiN.Core.IE.CreateNewIEAndGoToUri(Uri uri, LogonDialogHandler logonDialogHandler, Boolean createInNewProcess)
at WatiN.Core.IE..ctor()
I am currently running them using teamcity v5.1.4, nunit 2.5.5, watin 2.0 on a windows 7 machine with .net framework 3.5
Following is the code where its failing.
<TestFixtureSetUp()> _
Public Sub Setup()
System.Threading.Thread.Sleep(100)
_internetExplorer = New IE()
LoginUser()
CheckForDataBase()
End Sub
<TestFixtureTearDown()> _
Public Sub TearDown()
Logout()
_internetExplorer.Close()
End Sub
Any idea what could be reason for this
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
800704a6= 来自 win32 的错误 ERROR_SHUTDOWN_IS_SCHEDULED。重启是否待处理?
800704a6= error ERROR_SHUTDOWN_IS_SCHEDULED from win32. Is a reboot pending?
我建议您查看一下问答环节。有很多关于您的问题的信息。这可能与您的服务器上安排的更新有关。
I suggest you have a look at this Q&A session. There are lots of informations concerning your problem. It can be related to the fact that updates are scheduled on your server.