TestStudio : Recorder unable to connect

4 posts, 0 answers
  1. Onawahya
    Onawahya avatar
    1 posts
    Member since:
    Nov 2011

    Posted 07 Jun 2012 Link to this post

    This issue is in regards to our company's licensed version of Telerik Test Studio. Our original request was Support ID:541137

    Test Studio version installed:
    2012.1.411.0

    At present our issue is that TestStudio is unable to do the following:
    1. Connect recorder to IE ( ver 8 & 9)
    2. Playback in IE (ver 8 & 9)

    TestStudio will presently:
    1. Playback in Firefox
    2. Playback in Chrome

    Environment:
    Dedicated Virtual Machine with Windows Server 2008 R2, latest Microsoft updates.
    Environments are configured with Visual Studio 2010 installed and the TestRun machine is without.


    When attempting to record a new event the following error is generated:
    [06/07 08:28:39,Telerik.TestStudio.exe(5328:9)] First trace message from pool unnamed thread (managed ID = 9, native ID = 8752).
    [06/07 08:28:39,Telerik.TestStudio.exe(5328:9),Framework] Manager.get_ActiveBrowser() : The current ActiveBrowser is either invisible or disconnected.
    [06/07 08:28:39,Telerik.TestStudio.exe(5328:9)] First trace message from pool thread "EnsureActiveBrowser worker" (managed ID = 9, native ID = 8752).
    [06/07 08:28:39,Telerik.TestStudio.exe(5328:9),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Process launched (ID=532, Path="C:\Program Files (x86)\Internet Explorer\iexplore.exe", Arguments="-nomerge about:blank").
    [06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Attempting to attach on IE frame (HWND=787976)...
    [06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] Connector.Start() : Process launched (ID=1460, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 657022").
    [06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] Connector.Start() : Process exited (ID=1460, ExitCode=0, Path="C:\Windows\SysWOW64\rundll32.exe", Arguments="ArtOfTest.Connector.dll,AttachToWindowEntryPoint 657022").
    [06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] InternetExplorerActions.LaunchNewBrowserInstance() : Process "Telerik.TestStudio" (ID=5328) is assumed to host the controller.
    [06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] Connector.InjectCode() : ------- Function Start -------
    [06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] Connector.InjectCode() : Connection string: C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2012.1.411.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?5328
    [06/07 08:28:40,Telerik.TestStudio.exe(5328:9),Framework] InternetExplorerActions.WaitForDocument() : Attempting to get IHTMLDocument2 from Internet Explorer HWND 657022 on another thread...
    [06/07 08:28:40,Telerik.TestStudio.exe(5328:12)] First trace message from pool thread "WaitAsync polling wait worker" (managed ID = 12, native ID = 8672).
    [06/07 08:28:40,Telerik.TestStudio.exe(5328:12),Framework] <>c__DisplayClassf.<WaitForDocument>b__8() : Attempting to get document from window handle
    [06/07 08:28:41,Telerik.TestStudio.exe(5328:9),Framework] InternetExplorerActions.WaitForDocument() : IHTMLDocument2 successfully retrieved.
    [06/07 08:28:41,Telerik.TestStudio.exe(5328:9),Framework] Connector.InjectCode() : Sending WM_COPYDATA to HWND 657022 (lpData = "C:\Windows\assembly\GAC_MSIL\ArtOfTest.InternetExplorer\2012.1.411.0__5339893a7cefe4d6\ArtOfTest.InternetExplorer.dll?ArtOfTest.InternetExplorer.ArtOfTestPluginEntryPoint?5328")...
    [06/07 08:28:41,Telerik.TestStudio.exe(5328:9),Framework] Connector.InjectCode() : Returned from sending WM_COPYDATA (LRESULT=0, GetLastError()=ERROR_ALREADY_EXISTS).
    [06/07 08:28:41,Telerik.TestStudio.exe(5328:9),Framework] Connector.InjectCode() : ------- Function End -------
    [06/07 08:29:11,Telerik.TestStudio.exe(5328:9),Recording] <>c__DisplayClass9.<EnsureActiveBrowser>b__8() : EXCEPTION! (see below)
         Outer Exception Type: System.TimeoutException
         Message: Wait for condition has timed out
         HRESULT: 0x80131505 (Official ID (if app.) = COR_E_TIMEOUT, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5381)
         Call Stack:
              at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
              at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
              at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
              at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
              at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
              at Telerik.TestStudio.Web.WebRecorderWindowManager.GetActiveBrowser(Boolean createOneIfNeeded, String arguments)
              at Telerik.TestStudio.Web.WebRecorderWindowManager.<>c__DisplayClass9.<EnsureActiveBrowser>b__8(Object obj)

    [06/07 08:29:11,Telerik.TestStudio.exe(5328:9),Recording] RecordViewController.BrowserLaunched() : Error launching the recorder. Error : System.TimeoutException: Wait for condition has timed out
       at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)
       at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
       at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
       at ArtOfTest.WebAii.Core.Manager.WaitForBrowserToConnect(Int32 browserIndexToWaitFor)
       at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
       at Telerik.TestStudio.Web.WebRecorderWindowManager.GetActiveBrowser(Boolean createOneIfNeeded, String arguments)
       at Telerik.TestStudio.Web.WebRecorderWindowManager.<>c__DisplayClass9.<EnsureActiveBrowser>b__8(Object obj)


    Back story:
    1. Test Studio was initially installed on a fresh VM of Windows Server 2008 R2.
    2. The VM did not have visual studio installed or any other applications outside of the OS.
    3. After installing Test Studio, an application error was generated when attempting to run.
    4. This was narrowed down to a missing visual studio library, which was included with the VS 2008 Redistributable.
    5. The VS 2008 Redistributable was downloaded and installed from this link: http://www.microsoft.com/en-us/download/details.aspx?id=29
    NOTE: This is the 32bit x86 distributable.
    6. After rebooting and further tests the VS dll reference error no longer occured.
    7. Test Studio is then unable to connect the recorder to or playback in IE.
    8. Per recommendations from our original support request (Support ID:541137 ) Visual Studio 2010 was installed and run in administrator mode.
    9. Test Studio continued to have difficulties in IE.
    10. The Test Studio project was then opened in VS 2010 and the target cpu was adjusted to x86.
    11. The issue persisted (same wait for error).
  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 11 Jun 2012 Link to this post

    Hello Onawahya,

    I have just updated your original request Support ID:541137. Could we please continue our communication there since it contains much information and history what has been done so far. Please note that submitting another request for the same issue cause double work and usually slow the things down. We are aware that you are experiencing a problem and we are trying our best to investigate and be of best assistance.

    Thank you for your understanding and patience. 

    Greetings,
    Ivaylo
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Filip
    Filip avatar
    1 posts
    Member since:
    Jun 2015

    Posted 30 Jun 2015 Link to this post

    Hi,

    When I am trying to record a webtest I receive this error. I tried to instal the The VS 2008 Redistributable for X64. I am running on a Dedicated Virtual Machine with Windows Server 2008 R2, latest Microsoft updates. I can record or run any test. Can anybody help me. Our company is looking to find a good automation tool that we could use. Please contact me on my email: filipc@sintecmedia.com.

    Thanks, 

  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 02 Jul 2015 Link to this post

    Hello Filip,

    Please submit a new post with more detailed information on what you are experiencing. Which version of Test Studio you are using? Are your browsers free of addons and are they calibrated. Are you expereincing an issue with only one browser or all the supported browsers.

    You can find a lot of answers if you take a look at the Getting Started section of our Online Documentation.

    Regards,
    Ivaylo
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top