We are starting a big LOB application using Silverlight.
I was wondering if you have any experience with Testing Silverlight apps, what are the best solutions you found and if you encountered any pitfalls.
We are starting a big LOB application using Silverlight.
I was wondering if you have any experience with Testing Silverlight apps, what are the best solutions you found and if you encountered any pitfalls.
Probably not exactly what you're after, but I subscribe to Netflix and they use the following url
http://www.tinyurl.com/netflixsl
...to send subscribers to when they've got a problem. This is of course, at the end of things, and I'm assuming you're after something to test while you're actually developing. But, this might be something you could copy once you're product is released.
A stalwart individual named Jeff Wilcox has developed a unit test framework targeting Silverlight 2 specifically. It works well.
http://code.msdn.microsoft.com/silverlightut/
I also use Rhino Mocks 3.5 For Silverlight as my mocking framework, developed by Oren Eini. Rhino Mocks is free and excellent. It also offers Silverlight support:
http://ayende.com/projects/rhino-mocks.aspx
I use Prism 2.0, and Unity IoC, which help facilitate the MVVM pattern. This makes testing a breeze. One pitfall that I find, is that Silverlight unit tests run inside a web browser, which hampers continuous integration.
ib.
A "must have" debugging tool for SIlverlight is Silverlight Spy, available as a free download.
I use SilverUnit to unit test Silverlight, it is an open source tool that sits on top of Typemock Isolator