I'm trying to set up a test project for my ASP website. For some tests I want to use selenium to perform end-to-end tests.
Therefor my website has to be running so the tests can access the site.
How can I start my website project when I run tests?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With