Visual Studio Developer Center > Visual Studio Testing Tools Forums > Visual Studio UI Automation Testing (includes CodedUI) > Initialization Failed error while trying to run a test created using coded ui test builder

Answered Initialization Failed error while trying to run a test created using coded ui test builder

  • Monday, May 31, 2010 10:45 AM
     
     

    Ok I am really new with Automation Testing...rather new in Testing itself. Recently started using Coded UI Testing for one of my project.

    I created a coded ui test using a its test builder. Recorder something, made it data driven, etc. It was workin fine yesterday. Today whn I am trying to run the same test, it fails in initialization.The test result details shows following error: Playback engine is already initialized and SkipStepThreadEvent has been created. Cannot change the name of event after its is created.

    Can somebody help me to fix this....

Answers

All Replies

  • Monday, May 31, 2010 10:50 AM
    Moderator
     
     Proposed Answer

    Hi,

    This error means that playback was not cleaned up properly due to some reasons. You can have any one of these workarounds to solve this

    1) Kill QtAgent32.exe

    OR

    2) Goto Tools->Options in VS. In that Click on TestTools->TestExecution tree item. On the right pane uncheck "Keep the test execution engine running between test runs"

    Thanks

    Siddhartha

  • Monday, May 31, 2010 10:55 AM
     
     

    I did it but now I am getting this error while trying to run it:

    Error 1 Unable to copy file "obj\Debug\Omni_Check.dll" to "bin\Debug\Omni_Check.dll". The process cannot access the file 'bin\Debug\Omni_Check.dll' because it is being used by another process. Omni_Check

  • Monday, May 31, 2010 10:57 AM
    Moderator
     
     Answered

    Hi

    Can you kill Qtagent32.exe and then try running the test?

    Thanks

    Siddhartha

  • Monday, May 31, 2010 11:53 AM
     
     Proposed Answer
    Yes its working now...Thanks