dotCover 2016.1 Help

Web Application on Visual Studio Development Server


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

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

With dotCover, you can run manual test sessions for Web applications on the Visual Studio Development Server (WebDev server). dotCover will start the specified version of the server for you and optionally a Web browser with the page of the target application, allowing you to execute the test scenario and record its coverage.

To start a manual test session on Visual Studio Development Server

  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 WebDev.
  3. In the Physical path field, specify the path to your Web application root folder. This path corresponds to the path to your Web application project when you open it in Visual Studio.
  4. If you want to start a Web browser with your application, tick the Open URL check box and type the URL of your Web application. If necessary, change the browser that should be used.
  5. Optionally, tick the Advanced check box to configure additional settings:
    • Choose the desired version of Visual Studio Development Server in the Server drop-down list.
      Depending on the selected Server version, the appropriate runtime is used.
    • In the Virtual Path field, you can specify the portion of the request URL that follows the server identifier if it differs from the Web site root. For example, type /yourApplication to run your application at
    • By default, the Web server port is detected automatically. To specify it explicitly, clear the Autodetect check box and type a new port number in the Port field.
    • Click Edit Symbol Search Policy to specify where to search for PDB information.
    • 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.
  6. Click Run. dotCover will open the Coverage Controller dialog box and then start the specified Web application on Visual Studio Development Server. You need then navigate to your application Web page in a browser or press Ctrl+F5 to refresh the page.
    If the Run Browser check box is selected, dotCover will start the selected Web browser or open a new Web page tab at the specified URL.
  7. 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