Freigeben über


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

  • Anonymous
    December 18, 2009
    Any status  on testing Silverlight controls via Coded UI Test?

  • Anonymous
    December 19, 2009
    Hi Algaray - we are trying to get a plugin out post VS2010 to support Silverlight apps. No specific dates yetAnu

  • Anonymous
    December 22, 2009
    would the plug-in support silverlight 3.0 and 4.0?

  • Anonymous
    December 22, 2009
    Hi Joe - sorry, that's not closed as yet - we are looking into the level of support for each.

  • Anonymous
    March 15, 2010
    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

  • Anonymous
    May 31, 2010
    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!

  • Anonymous
    November 23, 2010
    HiIs 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 :)