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.

Can't seem to add a dir to scripts.dir in sahi.properties file

thornton102thornton102 Members
edited April 2013 in Sahi - Open Source
Hi,

I'm brand-new to this so please be patient.

I'm setting up my sahi.properties file and I want to add a shared directory to the scripts.dir line, but it doesn't seem to make a difference. I've tried (I had to replace the sensitive stuff in the paths):

# dirs. Relative paths are relative to userdata dir. Separate directories with semi-colon
scripts.dir=scripts;\\abc\d e f\gh ij\Sahi scripts

I also tried double backslashes and quotes. That didn't work, so I tried something as simple as possible, but that didn't work either:

# dirs. Relative paths are relative to userdata dir. Separate directories with semi-colon
scripts.dir=scripts;C:\Users\b.thornton\Desktop

What am I missing?

Best Answer

  • Hi,

    There are 2 properties files that Sahi uses. One is sahi/config/sahi.properties and the other is sahi/userdata/config/userdata.properties

    Sahi looks for a property in userdata.properties, and if not found, looks for it in sahi.properties.

    So, even though you changed sahi.properties, since scripts.dir is also mentioned in usedata.properties, it took the value from userdata.properties.

    Change scripts.dir in sahi/usedata/config/userdata.properties, and Sahi will pick it correctly.

    Note: Use double back slash for the address. Remove scripts and paste the address where you want to have your scripts directory
    Regards,
    Pratik Shah

Answers

Sign In or Register to comment.