Getting started

Starting Sahi:

Windows:
- Go to <sahi_root>\bin and run sahi.bat
Linux
- Go to <sahi_root>/bin and run sahi.sh
Note that by default Sahi uses port 9999. This can be modified through sahi.properties


Configuring the browser:

    Firefox:

    Internet Explorer:
While working with Sahi it may become annoying to have to switch between proxy and no proxy, or to another proxy.
There are a few plugins/freeware available on the net to ease this.
My personal favorite while working on Firefox is "Proxy Button". It helps in a single click toggling of proxy.
These tools can considerably enhance the experience of using Sahi.


Starting the bundled demo web server if needed, for learning and understanding Sahi APIs:
Windows:
- Go to <sahi_root>\bin and run web.bat
Linux
- Go to <sahi_root>/bin and run web.sh
Go to url http://localhost:10000/demo/index.htm and play around with the different pages.
It gives a fair idea of how elements are accessed through Sahi.

Note that by default Sahi uses port 9999 and the web server uses port 10000 (sahi's port + 1).
These can be modified through sahi.properties
(Top)

Recording through Sahi

The script being generated can be viewed by opening the <script_name>.sah file in the scripts directory.
The script can be edited even while recording, so that logical segregation into functions etc. can be done as recording happens.
Note that custom code can be tested, by entering code in the "debug" textarea and clicking on "Test ->".
The command will be executed and the result will be displayed in the textbox near the "Test ->" button.
Once confirmed that the desired result has been achieved, that code snippet can be added to the recording by clicking "Append to Recording"

You could use the demo application bundled with Sahi to get your feet wet.
(Top)

Playing back

(Top)

Suites

Multiple tests can be run through ant or a batch file/shell script.
Read more here
(Top)

Logging

Logs are created in "logs/playback/" directory.
Log results can be accessed on the browser through http://localhost:9999/logs/
(Top)