Automatically start ASP.MVC project when running test project Automatically start ASP.MVC project when running test project selenium selenium

Automatically start ASP.MVC project when running test project


Please reference the following links. I believe it is possible, but will be a little tricky. These are detailed and provide information on doing this programmatically.

Starting and stopping IIS Express programmatically

https://www.reimers.dk/jacob-reimers-blog/testing-your-web-application-with-iis-express-and-unit-tests

  • The idea is that you would need to start it and navigate to your particular local app in your browser.
  • Then you will need to get the window handle of the open browser window
  • Then instantiate your Driver object and use the window handle for that instantiation to get Selenium to execute on the open window.