Code coverage of Web Application with Unit Test and Selenium

Hi,

This isn't a problem of dotCover, but I am looking for advise on how to accomplish what I am trying to do. I have Project suite with an ASP.NET web forms application ,a Unit test project and a testing framework using Selenium. The web application is using IISExpress from within VS2015.

The Unit test talks to the framework with uses Selenium to start and drive my web application. The dotCover reports on the Unit test and the Framework, but not on the web forms application. Apparently the web application is running in a separate space dotCover cannot access.

Anybody have any suggestions on making dotCover see the internals of the web application running or alternate approaches (including other tools, but not gazillions of $$$) that I could use.

Even running dotCover on the actual web application seems to be a hit and miss en-devour. Most of the time, dotCover is waiting on the snapshot or I have to kill IISExpress in order for the snapshot to be triggered. Obviously, under VS, IISExpress closes out.

TIA

Bernhard

0
1 comment
Avatar
Permanently deleted user

Probably 2 years late....

 

I am able to do this. Steps that worked for me

1.  Open DotCover app

2.  In visual Studio: Debug --> Attach To Process --> Select DotCover

3. In DotCover:  IIS Express --> Select Configuration File(make sure you cleared you dont have redundant sites section in applicationhost file) -> Select APP -> Click on run

4. Run your Selenium scripts

 

DotCover should automatically pick it up

0

Please sign in to leave a comment.