Testing Silverlight applications with VSTS 2010 – coded UI, MTLM and web tests


Lately, we’ve been asked by some of our users if they can use VSTS 2010 test features to test their Silverlight apps. Well, web tests will still work on Silverlight web apps since they don’t operate at a control level, but functional tests that require to identify the control type and act on each control does not yet have support for SL. Therefore, we still don’t have support for testing Silverlight controls via the Coded UI Test and MTLM in VSTS 2010. But the good news is that we are planning to plug this gap after the VSTS 2010 release to enable our users to test Silverlight apps with coded UI test.


Another alternate is users can employ the extensibility support in the record and play engine in VSTS to write a plugin to enable support for Silverlight and use it in MTLM or Coded UI Test earlier. You can write up your plugin, compile and drop it onto your test machine – and you are ready to go. More on RnP extensibility in the coming posts.

Comments (7)

  1. algaray says:

    Any status  on testing Silverlight controls via Coded UI Test?

  2. Hi Algaray – we are trying to get a plugin out post VS2010 to support Silverlight apps. No specific dates yet

    • Anu
  3. Anonymous says:

    would the plug-in support silverlight 3.0 and 4.0?

  4. Hi Joe – sorry, that’s not closed as yet – we are looking into the level of support for each.

  5. Anonymous says:

    Hi,

    We were trying to explore record and play feature of VSTS2010. Is it possible that while playing back the recording the status of test case can be automatically updated as pass/fail or autmatically defect can be logged?

    Regards,

    Saema

    [Anu] Hi Saema – validation in manual test cases is still not automatable. So, we dont allow tests to be auto marked based on the playback of actions. If you use the coded UI test however, you can add validations in the form of assert statements thereby auto-pass/failing the test case based on the assert result

  6. Anonymous says:

    Is there any updates on Silverlight support in VS2010 code UI test? My project has many silverlight controls on the page.

    Hi Sunny – we are running late on this plugin. I should have an update posted on my blog this week. Watch out for it!

  7. Anonymous says:

    Hi

    Is there any update for the plugin to support silverlight?

    [Anu] Hey Pankaj – check out my latest post on Feature Pack 2 – it has the SL goodies 🙂