Thursday, December 22, 2011

Web Testing with MbUnit and WatiN Part 2: Controlling Localhost and IIS Express

Web Testing with MbUnit and WatiN Part 2: Controlling Localhost and IIS Express
One important aspect of web testing which is not so often discussed in blogs or articles is how to run tests against a web project running in debug mode on the local host. Microsoft provides two options to let you debug web projects locally: the Visual Studio development server and IIS Express. In this second part of our series on writing web integration tests, we’re going to demonstrate how to use the WebTestServer<T> class to start either server from within a running test suite.
In this article, you will
  • Create a simple one page website project for testing
  • Create a web test project that tests it against the VS Development Server
  • Alter the website and test project to test the page using IIS Express.

No comments:

Post a Comment