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.

Multiple sahi.properties

edited November -1 in Sahi - Open Source
Hi folks,
we are still working on out test sets and our Team grows.
Now we have 4 guys with us and we have to work in separate environments due to certificates setting.
We have the a server listening on port 9999 , another on port 19999 , 3rd on 29999 and 4th on 39999.
We have 4 sahi installations and this is not the best .

The question is very simple:
Can we specify different sahi.properties file in different sahi.bat scripts ?

TIA
Ciao
Massimo

Comments

  • narayannarayan Administrators
    Massimo,

    We have just released a new version today. From this version, you can keep your Sahi installation separate from user data like scripts, certs, configuration etc.

    After you download Sahi V3 2009-10-22,

    1) Copy userdata directory to some other place.
    2) Open userdata/bin/start_sahi.bat and set SAHI_HOME and SAHI_USERDATA_DIR correctly.
    3) In your case you can have multiple userdata directories one for each person in your team.
    4) Open userdata/config/userdata.properties and add
    proxy.port=19999
    or which ever port you want.
    Settings in userdata.properties override settings in sahi.properties.
    5) Start Sahi using userdata/bin/start_sahi.bat and you should be able to run 4 instances of Sahi on different ports.


    Let me know if this works for you.

    Regards,
    Narayan
  • Hi Narayan,

    the values from sahi.properties are not overridden when I add the properties below to userdata.properties

    script.time_between_steps=10000
    script.time_between_steps_on_error=1000
    script.max_reattempts_on_error=0

    I have restarted sahi, the files are ok.

    Sahi properties file = C:\Java\sahi_20091023\sahi\config\sahi.properties
    Sahi user properties file = T:\dev01\TIF\source\appls\WebApps\SahiTests\userdata\config\userdata.properties

    I
Sign In or Register to comment.