18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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.
optional include statments using javascript
I am hoping some one can help me.
I keep all my Sahi test scripts in SourceSafe. Some of my test scripts are shared across 2 folders.
For example. I have a file called Issue4404.sah.
This file on SourceSafe lives in a folder called Issues, and also in a folder called AnimalRegistration.
My problem is that all the include files live in the AnimalRegistration folder.
In my Sahi script I want to do something like
if (file is in Issues folder) then
begin
_include('../../AnimalRegistration/GlobalVariables.sah');
end
else // we are in the AnimalRegistration folder
begin
_include('GlobalVariables.sah');
end
My javascript knowledge is week, and I was wondering if anyone can help me resolve this issues
Thanks
Donna
I keep all my Sahi test scripts in SourceSafe. Some of my test scripts are shared across 2 folders.
For example. I have a file called Issue4404.sah.
This file on SourceSafe lives in a folder called Issues, and also in a folder called AnimalRegistration.
My problem is that all the include files live in the AnimalRegistration folder.
In my Sahi script I want to do something like
if (file is in Issues folder) then
begin
_include('../../AnimalRegistration/GlobalVariables.sah');
end
else // we are in the AnimalRegistration folder
begin
_include('GlobalVariables.sah');
end
My javascript knowledge is week, and I was wondering if anyone can help me resolve this issues
Thanks
Donna