In ASP.NET WebForms, I've used Selenium to record and run my web and UI tests in a number of projects.
I know we can unit test Controllers and Models in ASP.NET MVC very easily.
What about Views?
Would you also test Views? If not how to make sure the Views, which are rendered by Controller Actions, contain the expected logics and behaviour?
I'd guess the same Web Testing Tools used in WebForms, such as WatiN and Selenium, could also be used here, not sure?
If so, what would be the difference between WebTesting in WebForms and WebTesting in MVC?
What about Views?
Erm, Selenium and WatiN.
Really, what makes you think that ASP.NET MVC views are any different than classic ASP.NET WebForms as far as integration tests are concerned? I mean they all spit HTML at the end of the day. That's what browsers and stuff like Selenium understand. Who spit this HTML is not that much important. What you care about in an integration test is that when a user lambda clicks on a button alpha after entering beta in the gamma text field hi got this Welcome User Phi
on the resulting HTML page, don't you? You really don't care about things like ASP.NET MVC or even less about things like ASP.NET MVC Views.
By the way you could use Selenium and WatiN with PHP. Or with Java Servlets if you are a fan of them. Doesn't really matter the server side technology you are using. What matters in an integration test is the scenarios that you have defined previously.
If so, what would be the difference between WebTesting in WebForms and WebTesting in MVC?
None.