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.microsoft.com/en-us/library/gg313838.aspx. Yes, otherwise it would not recognize any controls at all.
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.
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
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
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.
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.
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?
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 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.
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.