Web Applications Using WebDev ServerCtrl+Alt+K K
In Visual Studio:
In dotCover standalone application:
With dotCover, you can run coverage analysis for web applications on a 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 coverage scenario and record it.
To start a coverage run on Visual Studio Development Server
- Do one of the following:
In Visual Studio, press Ctrl+Alt+K K or choosefrom the main menu
In dotCover standalone application, press Ctrl+Alt+K K or choosein the menu.
In the Coverage Configuration dialog that appears, choose WebDev.
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.
If you want to start a web browser with your application, select the Open URL check box and type the URL of your web application. If necessary, change the browser that should be used.
- Optionally, select the Advanced check box to configure additional settings:
Choose the desired version of WebDev 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
/yourApplicationto run your application at
By default, the web server port is detected automatically. To specify it explicitly, clear the Use random port 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.
- Click Run. dotCover will open the Coverage Controller dialog and then
start the specified web application on WebDev 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.
If the Collect profiling data from start check box was selected, the coverage run starts immediately. Otherwise, dotCover waits until you click Start in the Coverage Controller dialog. When the coverage run is started, you can record code coverage.