Sahi V3.5 has a lot of new features. Please watch this video to get started with Sahi V3.5.
Java 1.5 or above is needed for running Sahi.
Download Sahi from SourceForge.
You can download any of these:
install_sahi_xxx.jar has the installer + Sahi + Source code (recommended)
sahi_xxx.zip contains just Sahi
sahi-src_xxx.zip contains Sahi + Source code
Double click on install_sahi_xxx.jar to start the installer. If Java is configured properly, it will launch the installer.
If the installer does not launch, or if the jar file is opened as if it is a zip file, cancel the unzip dialog, open a command prompt, cd to where the file is downloaded, and run
java -jar install_sahi_xxx.jar
If you do not wish to use the installer, download the zip files and just unzip sahi_xxx.zip or sahi-src_xxx.zip to a desired location.
Start Sahi Dashboard by any of the following methods
1) Double click on the desktop shortcut
2) Go to Start -> All Programs -> Sahi -> Start Sahi (Click)
3) Start from the command line.
Windows: – Go to <sahi_root>\userdata\bin and run start_dashboard.bat
Linux – Go to <sahi_root>/userdata/bin and run start_dashboard.sh
The Sahi Dashboard automatically starts the Sahi proxy, and allows launching of browsers without explicitly modifying their proxy settings.
If you wish to explicitly modify the proxy settings for your browser, or if you are using Internet Explorer via a VPN or Datacard (like Tata Photon, Reliance etc.), look here
Bring up the browser of your choice by clicking on any of the browser icons.
Note that the Controller can be closed and reopened at any time, without disrupting recording.
The recoded script can be viewed and edited by opening the
The script can be edited even while recording, so that logical segregation into functions etc. can be done as recording happens.
Steps will start executing, and the Controller will be updated accordingly. Once finished, SUCCESS or FAILURE will be displayed at the end of the steps.
Note that the Controller can be closed at any time, without disrupting playback.
On the Controller, go to Playback tab and click on “View Logs” link at the bottom right. It will open a window with the results neatly formatted in HTML.
Clicking on a line in the logs will drill down to exact line in script.
You can also view the logs at http://localhost:9999/logs
That is it! You have successfully recorded and played back a Sahi script!
With version 3.5, we have removed individual batch files for different browsers and replaced it with testrunner.bat and testrunner.sh
testrunner.bat <sah file|suite file> <startURL> <browserType>
testrunner.bat demo/demo.suite http://sahi.co.in/demo/ firefox
testrunner.bat demo/sahi_demo.sah http://sahi.co.in/demo/ ie
You can run multiple scripts in batch mode.
More information here