Sunday, July 19, 2009

Watir - An Automated Testing Tool for Web Applications

Hi to All,

I like to share you a best testing tool for all web developers for their web applications. It is platform independent tool, you can test your application which was created with any programming language like PHP, RoR, J2EE, Dot Net, etc.,

Steps to Install and work with watir.

1. Download ruby and follow the installation instructions.

2. gem update --system.

3. gem install watir ( recent version of watir will automatically get install )

Note This gem will test the application with IE browser as default. If you want to check with FireFox browser then you should install "firewatir" and for chrome browser "chromewatir".

supporting gems will automatically get install, perhaps one of the significant gem to co-ordinate with windows api, you should install a gem called "windows-pr" i.e gem install windows-pr

This windows-pr gem will resolve the following error:
Ruby/lib/ruby/gems/1.8/gems/windows-pr-0.9.3/lib/windows/thread.rb:59: uninitialized constant Windows::API::Error (NameError)

Get start to work by follow the watir tutorial

Hope this will help some one or mine too!

No comments: