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.
A collection of articles and resources of interest to the modern software developer
Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do.
-- Steve Jobs
Showing posts with label MbUnit. Show all posts
Showing posts with label MbUnit. Show all posts
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
Wednesday, December 21, 2011
Web Testing with MbUnit and WatiN Part 1: Keeping Your Tests Legible | developerFusion
Web Testing with MbUnit and WatiN Part 1: Keeping Your Tests Legible
We’re all quite comfortable writing unit tests to verify that a piece of code does what we think it should do, and there are many test frameworks to enable this activity. One solid solution for going one step further and writing powerful integration tests for .NET web applications is to combine WatiN, an informal .NET port of the WatiR open-source (BSD) family of Ruby libraries for automating web browsers, with the Gallio automation framework and MbUnit test library.
Subscribe to:
Posts (Atom)