| || |
Silverlight automation tool
On my previous workplace I was writing an automation tests in Visual Studio using C#, but at the moment I have start automation testing on Silverlight-based web-site.
Selenium IDE doesn't suppport it and I cannot record any tests to convert them in C# and then continue writing them in Visual Studio.
Are there any opportunities to automate the Silverlight somehow using Visual Studio tools?
Does anybody here tried to do this successfully?
I have found a lot of topics about problems with automation of Silverlight, but no solutions at all...
I am looking for any tools and guides for them to start writing tests in C# for Silverlight.
Thanks in advance!
You will not be able to use selenium. Silverlight exists in application memory space (the browser's plugin) and not the page's DOM.
As the previous person mentioned, you can use Visual Studio Test Edition or Ultimate to write tests against the silver light application itself.
Other options available are..
Many tools like TestComplete and QTP have additional plugins you can install that adds support for you. Most comes in the flavor of a plugin you install on the tool, with an optional DLL you compile into the software under test to complete the bridge. https://support.smartbear.com/viewar...71015/#Plugins
There are 3rd party market places where you can buy these plugins. I forget the website for these, but there are online marketplaces out there that sell plugins for QTP and other automation tools made by 3rd party developers.
Lastly, the nuclear option, is using the accessibility methods to write either a test bridge or a plugin support for another commercial tool/framework. This option is very difficult, as it requires a good in-depth knowledge of the protocols, serializations, and performance coding patterns. You are essentially writing a network protocol between your software under test and your test framework. I would recommend hiring a skilled SDET or SET for this sort of work. (I'd probably only go this route if all other options have failed because SDETs tend to be more expensive than normal devs, plus it is a significant time investment to write an automation bridge.)
Ranorex will work with Silverlight. I started a Sliverlight project with Coded UI and switch to Ranorex.