Numerous errors when automating Silverlight on Win7 64-bit

8 posts, 0 answers
  1. Madhavi
    Madhavi avatar
    8 posts
    Member since:
    Aug 2010

    Posted 15 Jun 2011 Link to this post

    I've had a number of issues trying to automate a Silverlight application from a unit test.  I will post different error messages to this thread as I see them.  

    Here is the latest example:

    Error: SilverlightUtils.AppendAutomationExtension() : EXCEPTION ("Unable to inject System.Windows.dll")
         Type: NullReferenceException
         Message: Object reference not set to an instance of an object.
         Call Stack:
              at ArtOfTest.WebAii.Silverlight.SilverlightUtils.AppendAutomationExtension(MemoryStream originalXapFile)

    I can't make heads or tails of this error, which is typical for the error messages I receive.

    I can attach my Visual Studio solution that contains my tests.  Do I need to include my Silverlight app? Or attempt to develop a Silverlight app that reproduces the error message with my test solution?

    Thanks for your help.
    Paul Schofield
  2. Madhavi
    Madhavi avatar
    8 posts
    Member since:
    Aug 2010

    Posted 15 Jun 2011 Link to this post

    That last error was with Chrome.  I would tell you the version, but after running the test, the "wrench" menu button in Chrome doesn't work any more.

    Here is a new error I am getting when using Internet Explorer:

    Error: PipeCommunication.AsyncPipeRead() : EXCEPTION ("Pipe Null State: False")
         Type: ThreadAbortException
         Message: Thread was being aborted.
         Call Stack:
              at System.Threading.WaitHandle.WaitOneNative(SafeHandle waitableSafeHandle, UInt32 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)
              at System.Threading.WaitHandle.InternalWaitOne(SafeHandle waitableSafeHandle, Int64 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext)
              at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.AsyncPipeRead(PipeStream pipe, Byte[] bytes, Int32 offset, Int32 count)

    DialogPlayback: Manager.End() : Dialog monitoring is being halted.
    System.Threading.ThreadAbortException: Thread was being aborted.
    at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.AsyncListenerThreadEntry()
    at System.Threading.ExecutionContext.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode codeCleanupCode backoutCodeObject userData)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContextContextCallback callbackObject stateBoolean ignoreSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContextContextCallback callbackObject state)
    at System.Threading.ThreadHelper.ThreadStart() 
  3. Madhavi
    Madhavi avatar
    8 posts
    Member since:
    Aug 2010

    Posted 15 Jun 2011 Link to this post

    After rebooting my system, I can use the Chrome "wrench" menu -- I wonder if the Test Framework thought the dialog was a popup, and closed it?

    Anyway, I am running Chrome 12.0.742.100.
  4. Madhavi
    Madhavi avatar
    8 posts
    Member since:
    Aug 2010

    Posted 15 Jun 2011 Link to this post

    Btw, with the previous version of Test Studio, the installer did not work with Windows 7, 64-bit.  I had to apply the following reg file to run tests:

    Windows Registry Editor Version 5.00


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik]


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\TestStudio]
    "DesignVersion"="2011.1.502.0"
    "BinPath"="C:\\Program Files (x86)\\Telerik\\Test Studio 2011.1\\Bin\\"
    "DCUpdaterPath"="C:\\Program Files (x86)\\Telerik\\Test Studio 2011.1\\Updates\\"
    "LogFolder"="C:\\Program Files (x86)\\Telerik\\Test Studio 2011.1\\Logs\\"


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\TestStudio\Frameworks]


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\TestStudio\Frameworks\WebAii 2011.1]
    "InstallPath"="C:\\Program Files (x86)\\Telerik\\Test Studio 2011.1\\"
    "Version"="2011.1"


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\TestStudio\InstallerProperties]
    "PCode"="d66DxZZx8oJj/f/4yuwg6PwCqzWOLJpR"
    "InstallDir"="C:\\Program Files (x86)\\Telerik\\Test Studio 2011.1\\"
    "FullEditionInstallLocation"="C:\\Program Files (x86)\\Telerik\\Test Studio 2011.1\\"


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\TestStudio\InstallerProperties\{5F6174EF-B56C-4E04-9B13-ABE0E0100286}]
    "FrameworkSamplesInstallPath"="C:\\Program Files (x86)\\Telerik\\Test Studio 2011.1\\Samples\\"
    "TestStudioSamplesInstallPath"="C:\\Program Files (x86)\\Telerik\\Test Studio 2011.1\\Samples\\"


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\TestStudio\InstallerProperties\{7DAA4E13-0D5C-40CF-9339-903694AD77FD}]
    "FrameworkSamplesInstallPath"="C:\\Program Files (x86)\\Telerik\\Testing Framework 2011.1\\Samples\\"


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\TestStudio\Translators]
    "PhysicalLocation"="C:\\Program Files (x86)\\Telerik\\Test Studio 2011.1\\Bin\\Translators"


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\WebUITestStudio]


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\WebUITestStudio\2010.3]
    "SamplesInstallPath"="C:\\Program Files (x86)\\Telerik\\WebAii Testing Framework 2010.3\\Samples\\"


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\WebUITestStudio\Frameworks]


    [HKEY_LOCAL_MACHINE\SOFTWARE\Telerik\WebUITestStudio\Frameworks\WebAii 2011.1]
    "InstallPath"="C:\\Program Files (x86)\\Telerik\\Test Studio 2011.1\\"
    "Version"="2011.1"

  5. Madhavi
    Madhavi avatar
    8 posts
    Member since:
    Aug 2010

    Posted 15 Jun 2011 Link to this post

    Ok, now when I click on a tab in Chrome (which usually activates it), the tab closes.  This is bizarre.

    -- edit -- 
    I've solved this issue.  Clicking the scroll wheel while in Chrome changes the behavior of left-clicking a tab to closing it.
  6. Madhavi
    Madhavi avatar
    8 posts
    Member since:
    Aug 2010

    Posted 15 Jun 2011 Link to this post

    I also just started getting this error message when I test in Firefox:

    "The proxy server is refusing connections."
  7. Madhavi
    Madhavi avatar
    8 posts
    Member since:
    Aug 2010

    Posted 15 Jun 2011 Link to this post

    I've uninstalled, cleaned my VS solutions and removed every ArtOfTest dll I could find on my system, then re-installed the Telerik Testing Framework.  Now I'm getting this:

    Exception caught in AOTHttpProxy.Start:
    System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
       at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
       at ArtOfTest.WebAii.Messaging.Http.HttpProxyManager.Start()
    Uncategorized: DialogMonitor.Start() : Using: ArtOfTest.WebAii, Version=2011.1.609.0, Culture=neutral, PublicKeyToken=4fd5f65be123776c
    Uncategorized: DialogMonitor.Start() : OS: Microsoft Windows NT 6.1.7600.0
    DialogPlayback: Manager.SetupDialogMonitoring() : Beginning monitoring for dialogs from the set {}.
    UIAutomation: UIAutomationWindowMonitor.get_Instance() : Added a(n) WindowPatternIdentifiers.WindowOpenedProperty handler on element System.Windows.Automation.AutomationElement scope Descendants.
    Framework: Manager.End() : Connecting to the provisioning pipe "Pipe.ArtOfTest.WebAii.BrowserProvisioner_-596512156" in order to unblock and eventually terminate it...
    Framework: Manager.End() : Provisioning pipe connected.
    Framework: ExecutionContext.runTryCode() : A new client has connected to the provisioning pipe but this will be treated as a termination cue.
    Framework: Manager.End() : Provisioning thread terminated.
    DialogPlayback: Manager.End() : Dialog monitoring is being halted.
    System.InvalidOperationException : Pipe hasn't been connected yet.
    at System.IO.Pipes.PipeStream.CheckWriteOperations()
    at System.IO.Pipes.PipeStream.Write(Byte[] bufferInt32 offsetInt32 count)
    at ArtOfTest.WebAii.Messaging.Http.HttpProxyManager.InstallAsSystemProxy()
    at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunchBoolean waitForBrowserToConnectProcessWindowStyle windowStyleString arguments)
    at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunchBoolean waitForBrowserToConnectProcessWindowStyle windowStyle)
    at TransactionCenter.Services.UnitTests.UITestsTelerikSpecFlowSpike.TelerikNUnitTest1.SampleWebAiiTest() in TelerikNUnitTest1.cs: line 140

    I think this is the error from the Installer not setting the registry keys correctly for 64-bit Windows.  I will run my .reg file and try again.
  8. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 21 Jun 2011 Link to this post

    Hi Madhavi,

    I am sorry you have been running into so many problems trying to use our free Telerik Testing Framework product. We have tested it on a 64-bit Win 7 machine (in fact that's my every day testing environment), even Silverlight applications and didn't run into these problems.

    The last error message you posted is referring to our ArtOfTest.WebAii.HttpProxy.exe proxy program which normally resides at "C:\Program Files (x86)\Telerik\Testing Framework 2011.1\Bin". Can you find this file at that location?

    I am wondering, is there anything special about your test machine? For example is it a real machine or a VM? If it's a VM, what virtualization software are you using?

    Regards,
    Cody
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
Back to Top