The problem detailed later is "nearly" solved by Microsoft, here is the Post from today :
which indicates that "Silverlight UI automation" CTP is on its way.
The released version is to be by the end of the year.
As for us, in the meantime, we used two complementary tools to record and play automatically our user scenario on our Silverlight 4 application :
A/ QTP (Quick Test Pro from HP) : The post here is quite old, but I can confirm QTP supports Silverlight 4, and we were surprised but pleased that it worked without additional.
I haven't tried the plug-in (it's really expensive) but it is considerably more powerful than our current solution.
B/ Telerik WebUI Test Studio 2010, the version that is integrated within Visual Studio 2010.
Here is the problem we encountered with the Microsoft "Coded UI Tests and Action Recordings" :
- Run your "Test Case" within the "Coded UI Tests and Action Recordings",
- On an IE 7 or 8 Browser, enter the URL of a web page containing both some HTML and Silverlight,
- You can perform actions on the HTML part, but as soon as you hit the Silverlight zone, the popup Test Runner - Microsoft Test Manager complains with the following message :
Microsoft Silverlight is currently not supported.
Go to http://go.microsoft.com/fwlink/?LinkId=157214 for information on available add-in for possible support.
- The "Coded UI Tests and Action Recordings" is paused.