开发者

.NET equivalent of httpunit

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.


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.


Have you looked at Selenium?

It is a generic web application testing system.

Another one is WatiN.


If you're looking for something more lightweight, try SimpleBrowser for .Net - open sourced at Github. It doesn't support JavaScript, but that may not be a requirement for your needs.

https://github.com/axefrog/SimpleBrowser

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜