views:

91

answers:

3

I will openly admit that I fall on the side of Test Driven Development. I have run into a situation that I would like to test, but I haven't found a good way to do so.

I have been working in ASP.NET MVC and I would like to test that the parts of code that I am putting into the view layer (and I know that I need to keep that as minimal as possible). I am looking for an equivalent in .NET to httpunit in Java or something similar.

A: 

Have you looked at Selenium?

It is a generic web application testing system.

Another one is WatiN.

Oded
I make use of selenium. It is more geared to black box functional testing. The thing I like about httpunit/htmlunit and their ilk is they allow for more reliable direct testing of things that are difficult to do outside of the view layer.
Matt
+1  A: 

Actually you can use HtmlUnit in .Net too: Using HtmlUnit on .NET for Headless Browser Automation. The article contains links to other ways of UI testing too.

Giorgi
A: 

None of you answer the author's question . I've googled a lot of resoures , looks like there are no eequivalent of httpunit library in dot net .

ms44cn