Web Testing for .NET Teams: WatiN or Watir?
I’ve noticed a pattern with several of my .NET clients who want to get into automated acceptance testing for web applications. They like the idea of WatiN because it would let them write tests in the same language as their production code. But then they notice that there’s much more documentation and apparently a much more active community around Watir. And that Ruby language looks interesting too. What to do?
I think there are good arguments for both. Here are the major pros and cons from my perspective…
WatiN
Pros | Cons |
|
|
Watir
Pros | Cons |
|
|
The Bottom Line
On balance, I think Watir is the better tool, has the better documentation, the most active community, and the best long-term prospects. But I understand the desire to standardize on C# or VB.NET for both production and test code. The long-term cost of adding another language to a product is not something to ignore.
Personally, I’ll continue to use and teach both tools with clients. When it comes to my own projects, however, I’ll be using and extending Watir, for all the reasons above and simply because I enjoy working with Ruby.
Which do you use and why?
Good post… Watir support for Chrome has come up now. Check out http://code.google.com/p/chrome-watir for more info…
One more advantage of watir which I found is because of Ruby building abstractions and DSLs for testing is pretty easy and good looking 😉
Regards,
Sai
I use and like WatiN, but maybe thats not such a surprise 🙂
Thanks for the article. Always good to know where things can be improved.
Jeroen van Menen
Lead dev WatiN
btw I definitely also have love for watir
[…] Richard Lawrence provides a comparison between WatiN and WatiR pros and cons in this article. […]