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.
Scripts location when executing scripts from a suite
When running a suite, can I call the script from a different location or do the scripts have to reside within the suite folder? If I can run it from a different location, what is the syntax for path to the script.
Thank you,
Kai
Thank you,
Kai
This discussion has been closed.
Comments
you can call scripts residing in any folder on any path of OS. you please refer to batch mode exeution post on windows posted by narayan.
http://sahi.co.in/w/Running+multiple+tests+in+batch+mode
Thanks
C:\sahi\userdata\scripts\testpacks\Copy of Disc2.sah http://testweb/reports/
My bat file (suite_test.bat) to execute this contains the following info:
echo on
:keepLooking
if EXIST C:\sahi\userdata\scripts\suites\suite_test.bat GOTO getStarted
GOTO keepLooking
:getStarted
C:\sahi\tools\toggle_IE_proxy.exe enable
java -cp C:\sahi\lib\ant-sahi.jar net.sf.sahi.test.TestRunner C:\sahi\userdata\scripts\suites\mySuite.suite "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://testweb/reports/ default localhost 9999 1 iexplore.exe "-nomerge"
C:\sahi\tools\toggle_IE_proxy.exe disable
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://localhost:9999/logs
pause
Could you please remove the spaces in file name and try?
C:\sahi\userdata\scripts\testpacks\Copy_of_Disc2.sah http://testweb/reports/
Replace the backslashes with forward slashes, if it still does not work.
C:/sahi/userdata/scripts/testpacks/Copy_of_Disc2.sah http://testweb/reports/
Regards,
Narayan