Sunday, March 09, 2008

Sahi - Open Source Web Testing Tool

Any body who has been working in testing applications know what is WinRunner and LoadRunner.

A commercial testing framework developed by Mercury Software.This tool provides testing script to an existing application and also a tester can master this scripts to test the applications.It happens this way.Tester starts testing each and every links or button in a web application and a in-built facility has been provided in the same to play back these scripts.Once the testing is over ,the tester play back the saved test script file.

Similarly , there is an open source testing framework developed in java called 'SAHI'.This frame works similar way that was explained above.Since it is developed 100% in java, customization to this framework is really easy depending upon the requirement.You can download this framework from http://sourceforge.net/projects/sahi/. There is a document included in this pack how to install and run it.

But this framework does not provide any in-built commands to enhance the testing, but merely a mediocre testing tool that can be used to test the web application.

Once you downloaded this framework, copy to a folder in your hard disk.Copy to C:\sahi. If you further explore this folder you can see a bin folder with a batch file to execute the sahi server.When you double click on this batch file, sahi server will start.This server will be listening to port 9999.

After this point you need to make few changes in your favourite browser which is self explanatory and enter any url.Alt + DBlClick will open script window where in you can start recording the events.It will record every click user making on website.Once you feel that the recording is enough then you can stop it and playback the scripts.

However there are certain discrepancies have been pointed out.Like, if you open more than one links, then this framework will register only one link.As far as security is concerned, there is one thing caught into my observation that it is decrypting password value automatically and was able to see the password entered!.

This is a very small framework which can be considered as a model testing framework.But a good deal of work is required to make this framework to use in day-to-day testing applications.
ThoughtWorks , US based company has extensively worked on this open source product.

No comments: