18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Sahi on Mac OS X?

edited November -1 in Sahi - Open Source
has anyone run Sahi on Mac OS X?

Comments

  • I am trying to install sahi on mac...not sure if that is possible. Can someone please provide tips on that?
  • mihaimacariemihaimacarie Members
    edited February 2009
    Hello there,

    With some changes Sahi Controller starts on MAC OS X. I am a new user of MAC OS, but I'll try to explain the entire installation process.

    1. Ensure that Java is installed. Open a New Terminal Window, type "java -version", without quotes. The command must return something like this:
    java version "1.5.0_16"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
    Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
    
    2. Extract Sahi archive into PLACES\<your user name>. Note: extract the nightly build from http://sahi.co.in/static/sahi_20090210.zip

    3. Modify the sahi.sh file, manually give the variable class paths:
    #if this does not work, try to run dos2unix on this file, or delete and reintroduce newlines.
    #EXT_CLASS_PATH=;
    #EXT_CLASS_PATH=$EXT_CLASS_PATH:../extlib/mysql-connector-java-5.0.4-bin.jar
    #SAHI_CLASS_PATH=/Users/<your user name>/sahi/lib/sahi.jar
    MOZ_NO_REMOTE=1
    java -classpath /Users/your user name/sahi/lib/sahi.jar:/Users/your user name/sahi/extlib/rhino/js.jar:/Users/your user name/sahi/extlib/apc/commons-codec-1.3.jar net.sf.sahi.Proxy
    
    - do not forget to modify "your user name" with your MAC user name.

    3. Start Firefox Browser. Setup the Proxy address: instead of localhost type 127.0.0.1.

    - Manually Proxy Configuration:
    HTTP Proxy: 127.0.0.1; Port: 9999
    SSL Proxy: 127.0.0.1; Port: 9999
    SOCKS v5 - checked

    4. Open Terminal Window. Go to Sahi\bin. Type:
    ./sahi.sh
    
    - "Sahi started. Listening on port:9999 ... " appears.

    5. Open a web page on Firefox Browser. To bring up the Sahi Controller press the ALT key and double click on the page -> Sahi Controller shows up.

    Now you can record or playback your Sahi scripts.

    Note: Sahi Controller stops when a secured web page is opened. More details at: http://sahi.co.in/forums/viewtopic.php?id=670

    Regards,
    Mihai
  • I'm trying to get this working on OSX (Macbook Pro). Once the proxy settings are made, nothing ever shows within the browser and the controller will NOT open. Can anyone help?

    Also,

    "2. Extract Sahi archive into PLACES\<your user name>. "

    Does this mean I should create the "PLACES" directory, and a directory beneath that with user name? There is no PLACE directory on this Mac. There IS a users directory which has a directory with the user name.

    Thanks in advance. My boss is really screaming for this to be done on the Mac. :-)
  • narayannarayan Administrators
    Hi TSheeley,

    You can unzip it anywhere. It need not be PLACES/<your user name>. That is just an example.
    What version of Sahi are you using? If you are using one of the older versions, you would see a OutOfMemoryException being thrown on the Sahi console. If you do, download the latest version and try.

    Regards,
    Narayan
  • Hi Narayan,

    Thank you for getting back to me. I'm using Sahi 2010-11-03.

    I have created the "PLACES" directory, and a directory beneath that with user name, unzipped there, and modified the sahi.sh file. Once the proxy settings are made, nothing ever shows within the browser (just a blank page) and the controller will NOT open.

    I have deleted that install, unzipped it into the default USERS/username directory, and modified the sahi.sh file. Still, once the proxy settings are made, nothing ever shows within the browser and the controller will NOT open.

    Would it be possible to give a more detailed installation procedure for Macs as you have for Windows machines?

    Many thanks once again,

    Tony S.
Sign In or Register to comment.