How we functionally test the Web app

Jul 21, 2009 at 1:37 AM

We wanted to have a way to test parts of the views in our ASP.NET MVC app instead of only testing up to the controllers. And we preferred to do it inproc, so we wouldn't have to host the page from a Web server. So we put together a little functional testing framework that allows us to write very readable tests that can check the values in the response header and peak into the contents of the view result.

In our most recent drop, have a look at Tests/Functional/WWPlatform.Web.Tests.Functional. We're in the process of writing more of these tests, but you can see an example in the CartTests.cs file.

What are your thoughts on this approach? Is it necessary? extraneous? solid? worthwhile? useful?


Mar 16, 2010 at 1:22 PM

Just noticed the guidance and downloading it now...

For functional tests - isn't that what LTAF (Lightweight Test Automation Framework) already does?