locked
Error calling Initialization method for test class xxxx: System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component. RRS feed

  • Question

  • Hello I'd like to share with you a strange issue that I'm facing frequently. The issue happens when some of the test methods fail by some reason, then when i run no matter which test it is failing with that exception:

    Error calling Initialization method for test class xxxx: System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component. 

    Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IRPFPlayback.SetSkipStepEventName(String skipStepEventName)
    Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.InitPlayback()
    Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize()


    so i need to restart the QTAgent32.exe in order to get rid of it. Even more sometimes the machine looks hang and QTAgent32.exe is taking up to 100 percent of the CPU.


    Wednesday, February 3, 2010 12:04 PM

Answers

  • Hi
    This was a issue we have already fixed in RC. thanks For reporting.

    thanks
    Rituparna
    http://blogs.msdn.com/rituparna
    Wednesday, February 3, 2010 12:58 PM

All replies

  • Hi
    This was a issue we have already fixed in RC. thanks For reporting.

    thanks
    Rituparna
    http://blogs.msdn.com/rituparna
    Wednesday, February 3, 2010 12:58 PM
  • Thanks :)
    Wednesday, February 3, 2010 1:13 PM
  • We are also getting this exact same message.  The "solution" merely indicates that it is fixed but does not give any references or what the cause was or how to overcome the symptoms.

    In our case, we are running the Test Agent on a VM with Visual Studio NOT installed.

    It was working last week (for 1 test run) and some changes may have been made to the Controller by our system guys (which may or may not be related) and now it is not working.

    How do I track down this problem?

    Tuesday, May 22, 2012 5:10 PM
  • I also already face same problems. Maybe you find some interessting information here:

    http://social.msdn.microsoft.com/Forums/en-US/vsautotest/thread/3a870909-80fa-4bf7-8f07-2820773fc204/#4b60356a-bbe1-4420-8ead-95cf16df2b7c

    http://social.msdn.microsoft.com/Forums/en-US/vsautotest/thread/3c7e50f7-e31f-46be-8d87-531a71a6e3fb/#363d1765-1ae3-4e08-b891-1c0b46ccf101

    Let me know If you find some further infromation/knowledge.

    Sometimes during MyInitialize():

             Playback.Cleanup();
             if (!Playback.IsInitialized)
             {
                Playback.Initialize();
             }

    may help.

    PS: It is not fixed in RC nor in SP1 or it is just a similar bug.

    • Edited by Victor Zn Wednesday, May 23, 2012 1:31 PM
    Wednesday, May 23, 2012 1:30 PM