且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WatiN: Web Application Testing In .Net!

更新时间:2022-09-17 17:59:23

When it comes to automated web site testing , most of the times you will think of Watir (Web Application Testing in Ruby ) or Doit . We thought the same. But then, we stumbled on WatiN .

WatiN is a stable framework , which is developed in C#. It aims at bringing you an easy way to automate tests with Internet Explorer and FireFox using .Net. As of now, IE6, IE7, IE8, Firefox 2.x and 3.x versions on Windows 2000, Windows XP, Windows 2003 and Windows 2008. are supported. The author also suggests the use of Internet Explorer Developer Toolbar or Firebug for FireFox for some heavy duty automation!

Features that are provided by WatiN:

  • Automates all major HTML elements
  • Find elements by multiple attributes
  • Supports AJAX website testing
  • Supports frames (cross domain) and iframes
  • Supports popup dialogs like alert, confirm, login etc..
  • Supports HTML dialogs (modal and modeless)
  • Provides a Page and Control model.
  • Supports creating screenshots of webpages
  • Has a basic (extensible) logging mechanism
  • Easy to integrate with your favorit (unit) test tool
  • Works with Internet Explorer 6, 7, 8 and FireFox 2 and 3
  • Developed in C#
  • Licensed under the Apache License 2.0
  • And since its open source you can add and contribute new features yourself!

There are few more projects that you can use in conjunction with WatiN. For example, you could try WatiN Test Recorder (generates code compatible with WatiN)

Download WatiN 2.0 RC 1 here .