Microsoft Visual Studio UI Test Plugin for Silverlight

Free

Using the Microsoft Visual Studio UI Test plugin for Silverlight, you can create Coded UI Tests or action recordings for Silverlight applications.

(4) Review
Visual Studio
2012
Download (4,346)
9/26/2012
1.0
E-mail Twitter del.icio.us Digg Facebook
Add To Favorites
Description
Reviews (4)
Q and A (6)
Sign in to Write a Review
Sort By:

by SoonerGoose | April 25 2013

This plugin is having uses with Visual Studio 2012 Update 2. Is anyone else having this error?

by Kyle Berry | October 03 2012

This tool is still not working for Silverlight 4. It starts recording, but when I click on a drop-down selection I get the error: "the recorded actions have been discarded". The drop-down will only work if I type in the value of the selected text that I want and then hit enter. This work around does not work well for the standard drop-down that doesn't allow type-ahead so I would be forced to use a different control for each drop-down.

Which version of Visual Studio are you using? 2012 RC
Do you have VS 2010 Feature Pack 2 installed? I have Feature Pack 2 installed.
Which Operating System are you using? Windows 7
Are you using Coded UI Test or Microsoft Test Manager to record? Coded UI
Have you prepared the Silverlight applications to enable testing - http://msdn.mic​rosoft.com/en-u​s/library/gg313​838.aspx. Yes, otherwise it would not recognize any controls at all.

by AAKoken | September 10 2012

by Ray L | August 28 2012

This tool is still not working for Silverlight 5. When I login to our Silverlight 5 UI, it is recording. Great. But when I click some basic features,"the recorded actions have been discarded" appears all the time.

Mathew Aniyan MSFT' August 30 2012
| Edit |
Delete

Ray,

Which version of Visual Studio are you using?
Do you have VS 2010 Feature Pack 2 installed?
Which Operating System are you using?
Are you using Coded UI Test or Microsoft Test Manager to record?
Have you prepared the Silverlight applications to enable testing - http://msdn.microsoft.com/en-us/library/gg313838.aspx

Mathew.

Sign in to Start a Discussion


  • Hand Coding for Silverlight Controls with above Plugin
    2 Posts | Last Post March 28, 2013
    • Hi Mathew
      
      Can we do Hand Coding with above Plugins. If yes then how? Can you give an example?
      
      Thanks
      The Ghost
    • No Need to reply.
      I follow the below steps:
      1. Added Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight from %Program Files%\Common Files\Microsoft Shared\VSTT\11.0\UITestExtensionPackages
      2. Added using Microsoft.VisualStudio.TestTools.UITesting.SilverlightControls
      
      I was able to do hand coding after this.
      
      Thanks
      The Ghost
  • Automation of Silverlight 5 App
    1 Posts | Last Post March 12, 2013
    • I have installed the Plugin for Silverligth 5 and Still cannot get the Silverlight 5 application to work with coded UI. Refences have been added as specified by your documentation. Currently I keep my automation code in another project than the application to which I am testing. Nothing is recored for automation, my code is all customized to my situation. The Coded UI Test builder states that there are no Sliverlight controls detected. Please advise as to how I might be able to get the Coded UI test builder to identify the Silverlight 5 controls.
  • Recording a test crashes
    3 Posts | Last Post October 22, 2012
    • I installed it on windows Server 2008R2 and get the following excpetion everytime I want to record a test:
      
      +		[0]	{System.Net.Sockets.SocketException (0x80004005): An attempt was made to access a socket in a way forbidden by its access permissions
         at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
         at System.Net.Sockets.Socket.Bind(EndPoint localEP)
         at Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.RegistrationListener.StartListening(Int32 minPort, Int32 maxPort)
         at Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.CrossDomainPolicyServer.Initialize()
         at Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight.SilverlightTestPlugin.StartSession(Boolean recordingSession)
         at Microsoft.VisualStudio.TestTools.UITest.Framework.UITestPluginManager.<>c__DisplayClass2.<StartSession>b__0(UITechnologyManager manager)
         at System.Threading.Tasks.Parallel.<>c__DisplayClass32`2.<PartitionerForEachWorker>b__30()
         at System.Threading.Tasks.Task.InnerInvoke()
         at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
         at System.Threading.Tasks.Task.<>c__DisplayClass10.<ExecuteSelfReplicating>b__f(Object param0)}	System.Exception {System.Net.Sockets.SocketException}
      
    • Is your Internet Explorer - Enhanced Security Configuration enabled? Can you turn it off and try?
      
      Another suggestion - please install the Desktop experience and then try to re-record the scenario.
      
      
    • I debugged that issue and found that the XAMLSpyService was also listening on port 943. After stopping the service the crash did not happen again. 
      
      Perhaps you could improve the error message by showing what port(s) were blocked.
  • Redistribution
    2 Posts | Last Post October 05, 2012
    • According to this msdn article (http://msdn.microsoft.com/en-us/library/gg313838.aspx)
      The SilverlightUIAutomationHelper.dll cannot be redistributed as part of your application. 
      
      Is this true for this file as well?
      
    • Yes. SilverlightUIAutomationHelper.dll cannot be redistributed.
  • Coded UI
    5 Posts | Last Post August 03, 2012
    • So as a Tester, I have to get Development to update to VS2012, have them install the plugin, add the dll, build and deploy.  
      
      Then I have to update to VS2012 as well? Do I need to run the Plugin? Add the dll also? My CodedUI tests are not in the same project as the developer, does that matter?
      
      And once that is done then the record and playback tool will magically pick up the Silverlight Objects?
    • A tester also needs to install this plugin. You can have Coded UI Test in a different solution/project.
      
      Once you have the application built with SilverlightUIAutomationHelper and you (the tester) install this plugin, you can record and playback on Silverlight controls.
    • We were able to use this dll to build and gather objects from the recorder with VS2010 on a Silverlight 5 web application. What are the reasons the dll requires VS2012? Are we doing something that can be harmful in the future?  btw, thanks for the hard work, our automation team is really excited to see what we can accomplish.
    • We have only verified this plugin on VS 2012. There may be some issues when using this plugin with IE 9 or IE10 and VS 2010 SP1.
    • We have found an issue in VS2010 SP1 attempting to use the Extraction Rule process on a SL5 Application. The error we get:
      Could not load file or assembly 'file//Microsoft.VisualStudio.TestTools.Extension.Silverlight.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)
      
      We could not duplicate this issue with VS2012RC.
  • Expand availability to VS2010 and OOB?
    2 Posts | Last Post July 10, 2012
    • It would be totally more useful to have the testing plugin available for us VS2010 users and for OOB scenarios. Doesn't seem like it should be that hard.
    • VS 2010 Feature Pack 2 enables UI Testing of Silverlight applications.
      
      http://msdn.microsoft.com/en-us/library/gg269474.aspx