Using the Microsoft Visual Studio 2013 Coded UI Test plugin for Silverlight, you can create Coded UI tests or action recordings for Silverlight 5 applications. This plugin supports Silverlight 5 applications hosted in Internet explorer versions 8, 9, 10 and 11. It requires Microsoft Visual Studio 2013 RTM or Microsoft Visual Studio 2013 Update 3 CTP1 or higher. If you are using Microsoft Visual Studio 2012, please usethis version of the UI Test plugin for Silverlight. A few members of the product team got together and built this plugin as an off-hours project. It is not an official Microsoft release. We will monitor the Q&A section for queries. Installation Steps 0. Prerequisites You need to have any one of the following Microsoft Visual Studio 2013 SKUs installed on the machine - Ultimate, Premium, Test Agent or Team Foundation Server. You should have Microsoft Visual Studio 2013 RTM or Visual Studio 2013 Update 3 CTP1 or higher on the machine. 1. Download the installer 2. Double click on the UITestPluginForSilverlightVS2013.msi to install. Steps to enable this feature 1. Setup your Silverlight application to include a helper assembly which enables UI testing. a. Add a reference to Microsoft.VisualStudio.TestTools.UITest.Extension.SilverlightUIAutomationHelper in your Silverlight application. b. Verify that each Silverlight control has a unique identification property. Detailed description of the procedure is given in the MSDN article - How to: Setup your Silverlight application for Testing. This MSDN article describes the steps applicable for Silverlight 4 applications. These same instructions apply for Silverlight 5 applications. 2. Use Microsoft Visual Studio to create Coded UI Tests to test Silverlight applications. 3. Add a reference to Microsoft.VisualStudio.TestTools.UITest.Extension.Silverlight in your Coded UI Test project. This assembly can be found in %Program Files%\Common Files\Microsoft Shared\VSTT\12.0\UITestExtensionPackages Detailed steps are given in thisMSDN article - Walktrhough: Creating, Editing and Maintaining a Coded UI Test for Silverlight applications.
|