开发者

Getting SetUp method failed. System.Runtime.InteropServices.COMException

开发者 https://www.devze.com 2023-01-31 05:20 出处:网络
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

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 {0002DF0开发者_Go百科1-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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号