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.
How to use TestRunner.bat to run RESTAPI test scripts
I have created a range of RESTAPI test scripts that I would like to run in batch. The test scripts execute via the controller, but they do not appear to run when using TestRunner.bat. I have tried by adding the scripts to a .suite file and by individually calling them in them in the .bat file that the TestRunner.bat executes.
Below is the output of the taskeng.exe:
C:\Windows\system32>cd /d N:\SahiProScripts\bin
N:\SahiProScripts\bin>REM CALL testrunner_threads.bat Suites\Solomon_API_User.su
ite http://user-services-jsonrpc.master.test.appservices1.dev-eu2.iiicloud.co.uk
opera 1
N:\SahiProScripts\bin>CALL testrunner_threads.bat API_createUser.sah htt
p://user-services.co.uk opera
email properties file path: N:\SahiProScripts\bin\email.properties
Oct 01, 2014 9:53:24 AM net.sf.sahi.test.TestRunner <init>
INFO:
port=9999
host=localhost
emailPasswordHidden=true
test=N%3A%5CSahiProScripts%2FAPI_createUser.sah
emailTrigger=success%2Cfailure
suitePath=N%3A%5CSahiProScripts%2FAPI_createUser.sah
isSingleSessionS=false
baseURL=http%3A%2F%2Fuser-services.co.uk
browserType=opera
emailProperties=email.properties
emailProp=
suiteId=sahi_1b96041001d6e049b40b63f00bfbc8b21468
useSingleSession=false
browserPath=null
isSendEmailS=false
threads=1
logsInfo=html%3AN%3A%5CSahi_Pro_Logs%2Fhtml
sendEmail=false
Oct 01, 2014 9:53:24 AM net.sf.sahi.test.TestRunner execute
INFO: Added shutdown hook.
Oct 01, 2014 9:53:24 AM net.sf.sahi.test.TestRunner execute
INFO: http://localhost:9999/_s_/dyn/Suite_start?a=a&port=9999&host=localhost&ema
ilPasswordHidden=true&test=N%3A%5CSahiProScripts%2FAPI_createUser.sah&em
ailTrigger=success%2Cfailure&suitePath=N%3A%5CSahiProScripts%2FAPI_creat
eUser.sah&isSingleSessionS=false&baseURL=http%3A%2F%2Fuser-services.co.uk&browserType=opera&emailProperties=em
ail.properties&emailProp=&suiteId=sahi_1b96041001d6e049b40b63f00bfbc8b21468&useS
ingleSession=false&browserPath=null&isSendEmailS=false&threads=1&logsInfo=html%3
AN%3A%5CSahi_Pro_Logs%2Fhtml&sendEmail=false&sahisid=sahi_1b96041001d6e049b40b63
f00bfbc8b21468
Below is the output of the taskeng.exe:
C:\Windows\system32>cd /d N:\SahiProScripts\bin
N:\SahiProScripts\bin>REM CALL testrunner_threads.bat Suites\Solomon_API_User.su
ite http://user-services-jsonrpc.master.test.appservices1.dev-eu2.iiicloud.co.uk
opera 1
N:\SahiProScripts\bin>CALL testrunner_threads.bat API_createUser.sah htt
p://user-services.co.uk opera
email properties file path: N:\SahiProScripts\bin\email.properties
Oct 01, 2014 9:53:24 AM net.sf.sahi.test.TestRunner <init>
INFO:
port=9999
host=localhost
emailPasswordHidden=true
test=N%3A%5CSahiProScripts%2FAPI_createUser.sah
emailTrigger=success%2Cfailure
suitePath=N%3A%5CSahiProScripts%2FAPI_createUser.sah
isSingleSessionS=false
baseURL=http%3A%2F%2Fuser-services.co.uk
browserType=opera
emailProperties=email.properties
emailProp=
suiteId=sahi_1b96041001d6e049b40b63f00bfbc8b21468
useSingleSession=false
browserPath=null
isSendEmailS=false
threads=1
logsInfo=html%3AN%3A%5CSahi_Pro_Logs%2Fhtml
sendEmail=false
Oct 01, 2014 9:53:24 AM net.sf.sahi.test.TestRunner execute
INFO: Added shutdown hook.
Oct 01, 2014 9:53:24 AM net.sf.sahi.test.TestRunner execute
INFO: http://localhost:9999/_s_/dyn/Suite_start?a=a&port=9999&host=localhost&ema
ilPasswordHidden=true&test=N%3A%5CSahiProScripts%2FAPI_createUser.sah&em
ailTrigger=success%2Cfailure&suitePath=N%3A%5CSahiProScripts%2FAPI_creat
eUser.sah&isSingleSessionS=false&baseURL=http%3A%2F%2Fuser-services.co.uk&browserType=opera&emailProperties=em
ail.properties&emailProp=&suiteId=sahi_1b96041001d6e049b40b63f00bfbc8b21468&useS
ingleSession=false&browserPath=null&isSendEmailS=false&threads=1&logsInfo=html%3
AN%3A%5CSahi_Pro_Logs%2Fhtml&sendEmail=false&sahisid=sahi_1b96041001d6e049b40b63
f00bfbc8b21468