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.
can i call a function in one script in another script
hi,
Can i call a function which is in one script into another script.
if so can u please help me with the code.
can i pass parameters for that function from this script into the calling script function?????
hlp me in this issue.
Thanks,
somi
Can i call a function which is in one script into another script.
if so can u please help me with the code.
can i pass parameters for that function from this script into the calling script function?????
hlp me in this issue.
Thanks,
somi
Comments
here's an example:
script1.sah:
function alertSum(a, b){
_alert(a+b);
}
now say you want to call this function in script2:
script2.sah:
_include("C:\\sahi\\scripts\\script1.sah");//or what ever is the path
alertSum(2, 4);
Hope this helps..