SourceForge.net Logo

Sahi - Web Automation and Test Tool


Documentation in this directory is not current. Please visit http://sahi.co.in/ for the latest documentation.


Sahi - Configuration (sahi.properties)

    # Sahi configuration file

    proxy.port=9999

    # dirs. Relative paths are relative to bin dir. Separate directories with semi-colon
    # scripts.dir=../scripts;D:\\my\\project1\\scripts;D:\\my\\project2\\scripts
    scripts.dir=../scripts;
    script.extension=sah;sahi;inc
    # default log directory.
    logs.dir=../logs
    # Directory where auto generated ssl cerificates are stored
    certs.dir=../certs/

    # Use external proxy server
    ext.proxy.enable=false
    ext.proxy.host=203.236.20.129
    ext.proxy.port=80

    # Sets the hotkey which when pressed and doubleclicked,
    # will open the Sahi controller window.
    # Can specify ALT, SHIFT or CTRL
    controller.hotkey = ALT

    # Increase this if you get random connection refused exceptions or if tests hang after some time.
    suite.time_between_tests=1000

    # Script execution params

    #Time delay between steps
    script.time_between_steps=100
    #Time delay between retries once an error occurs
    script.time_between_steps_on_error=1000
    #Number of retries once an error occurs
    script.max_reattempts_on_error=5
    #Number of cycles Sahi will wait for the page to load before it proceeds with execution
    script.max_cycles_for_page_load=50

    # For automatic SSL keystore creation.
    ssl.auto_create_keystore=true
    ssl.password=sahipassword
    # Full file path to keytool utility if not in the system path
    # This is generally in the <java_home>/bin directory
    keytool.path=keytool



proxy.port=9999

Port which the Sahi proxy server uses.
This should be the same as used in the browser proxy settings.

Hot Key

When the Hot Key is pressed and the page is doubleclicked, the Sahi Controller window is displayed.
By default, the Hot Key is set to ALT.
If ALT does not work on your platform, you could configure the hotkey in this file.
The hot key could be any one of ALT, SHIFT or CTRL keys.
Note that popup blockers may prevent the Controller window from coming up.
So first turn off popup blockers on your browser.
Sometimes CTRL-ALT-DblClick works on some browsers since that temporarily turns off some blockers.

Please send your feedback to V Narayan Raman.