Sunday, December 12, 2010

Sahi - Web automation Tool

Hi All,

I have come across a wonderful tool for Test automation of the web application. The Tool Named it as "SAHI" yaani (Hindi word) Correct/ perfect.

I was in the search of good open source tool, which should avoid the developing the code from scratch as like development for testing practices.

Tester tool should be so friendly, so that the tester should not worry about the coding part for the automation. But tester should think about the generating the test data’s and testing scenario’s.

For a tester a tiny tool which does most of the things other than logic's (after all testers have to think about the logic :) ) then, tester job becomes easy.
I have personally tried and invested time for POC for the tool "SAHI" which works wonderfully for the tester. This has an advantages and disadvantages features like human beings :).

Sahi is comes in 2 flavors, one is Open source and other is Pro edition.

Advantages:

1) OS & Browser independent.
2) Record & playing the scripts through the Sahi proxy from any browser (Change the Browser settings to localhost: 9999)
3) Simple API's and easy coding with JavaScript’s.
4) In-build reports, and easily customizable API's
5) Good Ajax support no waits required in the scripting.
6) Good object identification option on the sahi controller, easily test the line of scripts and upend to the script file. Tester can see the history of the recorded scripts and can modify/clear.
7) Parallel running multiple scripts on multiple browser Using ANT. (This is wonderful feature of this tool)
8) Step by step execution of the script using sahi controller.
9) Good support for external proxy, HTTPS, 401 & NTLM authentications

Limitations:
1) Framesets/pages with frames/ iframes loading pages from multiple domains are not supported.
Sahi cannot handle pages which have other pages from different domains embedded in them using iframes or frames. So you cannot have a page from google.com having an iframe with a page from yahoo.com. Note that this is not the same as switching between domains, where you navigate from a google.com page to a yahoo.com page, which will work in Sahi.
2) File upload field will not be populated on browsers for JavaScript verification. File upload itself works fine


Last word but not least, while selecting the Open source testing tools, we need to make ourselves a decision which tool is suited for our application to test.

Reference Links:

website: http://sahi.co.in/w/

For Download the latest tool: http://sourceforge.net/projects/sahi/files/

How to Use: http://sahi.co.in/w/using-sahi

Sahi Documentation: http://sahi.co.in/w/sahi

No comments:

Post a Comment