dotCover 2016.1 Help

Silverlight Application


In Visual Studio:
ReSharper | Cover | Cover Application...

In dotCover standalone application:
File | Cover Application...

With dotCover, you can run manual test sessions for Silverlight Web applications that have PDB information. dotCover will start the page where the target Silverlight application is hosted in the specified Web browser, allowing you to execute the test scenario and record its coverage.

Before you start analyzing coverage of a Silverlight application, make sure that:

  1. Silverlight 4 Developer Runtime or higher is installed on your computer. You can get the runtime at the Official Microsoft Silverlight web site.
  2. A Web page with your Silverlight application is started and running on a Web server.

To start a manual test session for a Silverlight application

  1. Do one of the following:
    • In Visual Studio, press Ctrl+Alt+K,K or choose ReSharper | Cover | Cover Application... in the main menu
    • In dotCover standalone application, press Ctrl+Alt+K,K or choose File | Cover Application... in the menu.
  2. In the Coverage Configuration dialog box that appears, choose Silverlight Application.
  3. In the Open URL field, type the URL of the Web page where your Silverlight application is hosted. As long as you have PDB information, it is not important whether the Web page is running on the local or a remote server.
  4. If necessary, in the Browser drop-down list, change the Web browser that should be used to open the Web page.
    To analyze coverage of a Silverlight Web application, dotCover needs to restart the Web browser process. If your default browser is currently in use, close it or choose another browser.
  5. The only place where dotCover can find PDB information of your Silverlight application is an explicitly specified path.
    Click Edit Symbol Search Policy button and specify the path in the Search path field. For more information, see PDB and symbol search policy.
  6. Optionally, tick the Advanced check box to configure additional settings: Click Edit Filters to view existing and add new coverage filters. Note that the filters you add with this button are only applied to the current session.
  7. Click Run. dotCover will open the Coverage Controller dialog box and then run the specified Web page with the Siverlight application in the selected Web browser.
  8. If the Start immediately check box was selected, the test session is started immediately. Otherwise, dotCover waits until you click Start in the Coverage Controller dialog box. When the test session is started, you can record code coverage in the test session.

See Also

Last modified: 19 August 2016