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.
find script name
Hello .
Find Script name
my scenario is like i have one test suite file name is test.suite and one main.sah file
test.suite contain main.sah
main.sah contain three line
first.sah
second.sah
third.sah
Now i execute sahi with
./testrunner.sah test.suite http://10.10.10.10 firefox
In that what happen test.suite file execute main.sah
and main.sah execute first.sah,second.sah and third.sah one by one
i want to find running script name when all three file execute
With the help of below function i can find out main.sah script name but i want to find out first.sah similarly reaming two
function _getScriptName(){
$path=String("" + ScriptRunner.getScript().getFilePath());
$Length=($path.split('/')).length;
$String=$path.split('/');
$ArrayIndex=$Length - 1;
$GetFilename = $String[$ArrayIndex];
return $GetFilename;
}
Find Script name
my scenario is like i have one test suite file name is test.suite and one main.sah file
test.suite contain main.sah
main.sah contain three line
first.sah
second.sah
third.sah
Now i execute sahi with
./testrunner.sah test.suite http://10.10.10.10 firefox
In that what happen test.suite file execute main.sah
and main.sah execute first.sah,second.sah and third.sah one by one
i want to find running script name when all three file execute
With the help of below function i can find out main.sah script name but i want to find out first.sah similarly reaming two
function _getScriptName(){
$path=String("" + ScriptRunner.getScript().getFilePath());
$Length=($path.split('/')).length;
$String=$path.split('/');
$ArrayIndex=$Length - 1;
$GetFilename = $String[$ArrayIndex];
return $GetFilename;
}
Comments
Please put first.sah,second.sah,third.sah into test.suite file and use
_scriptName() to find the Script name.
Regards
Sumitra