Wednesday, June 16, 2010

Silverlight UI Automation and Full VS 2010 Integration

OK, so it's not exactly "out of the box" but the most recent PRISM 4.0 Drop (drop 2) seems to contain something Silverlight developers have been begging for ... for quite some time.

It's buried within the "QuickStart" folder under the "BasicMVVM" project. This project provides guidance for the Model-View-ViewModel pattern and is worth a deep look. It may provide a basic framework for your future applications.

In that same folder, you'll find BasicMVVM.Tests.AcceptanceTest. Fire this project up and take a look at it. It contains some helper classes and launchers to host the Silverlight automation piece. If you're impatient like me, build and fire it off. That is where you start to have fun!

Silverlight Test Integration

Yes, that is the test panel within Visual Studio 2010, not the Silverlight Unit Testing Framework in a browser window. Even more interesting is watching the form appear on the screen, then automatically get filled out by the engine as the acceptance tests are run.

So what we have here is full UI automation for tests as well as VSTS integration.

This is obviously a huge jump for Silverlight ... I'm looking forward to digging in deeper to explore what's possible with this!

Jeremy Likness

2 comments:

  1. I admittedly have not had all my coffee yet this morning, but when I build and run the test project, I don’t get the VSTS integration. Rather, browser based test framework opens. I was excited about this as I’ve yet to find any documentation on how to utilize the “Test Stage” panel in the browser based version. Jeremy, are you sure you don’t require VS2010 Ultimate version to see the results you’ve posted? I’m running the Premium edition.

    ReplyDelete
  2. I tried mine with Ultimate so that limitation may exist ... would be interested if anyone else reading this can post comments to share their experience ... anyone get it working outside of Ultimate?

    ReplyDelete