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 run multiple scripts using cmd command
Hi,
I'm using SAHI OS for my current project.
OS=Windows
Browser =IE6
SAHI
Version : V3.5
Build : 2011-07-19
I have few scripts which are kept in "sahi\userdata\scripts" path. As per the information available on page sahi.co.in/w/Running+multiple+tests+in+batch+mode i'm trying to use CMD command to run them.
I have created one "myfirst.suite" file in scripts folder with the below content
Abuse_TC1.sah
/superclientstg2.sl.ca/consumerDSLWGP_Simulator/wg3.html
Abuse_TC2.sah //superclientstg2.sl.ca/consumerDSLWGP_Simulator/wg3.html
and then using the below command for execution
\sahi\userdata\bin>testrunner.bat myfirst.suite https:superclientstg2.sl.ca/consumerDSLWGP_simulator/wg3.html ie
But after executing this line nothing happend and i got some information on cmd with below like
usesinglesession =FALSE
Please help me how to run my scripts on batch.
NOTE: Not able to post correct URL's not allowed for new member
I'm using SAHI OS for my current project.
OS=Windows
Browser =IE6
SAHI
Version : V3.5
Build : 2011-07-19
I have few scripts which are kept in "sahi\userdata\scripts" path. As per the information available on page sahi.co.in/w/Running+multiple+tests+in+batch+mode i'm trying to use CMD command to run them.
I have created one "myfirst.suite" file in scripts folder with the below content
Abuse_TC1.sah
Abuse_TC2.sah //superclientstg2.sl.ca/consumerDSLWGP_Simulator/wg3.html
and then using the below command for execution
\sahi\userdata\bin>testrunner.bat myfirst.suite https:superclientstg2.sl.ca/consumerDSLWGP_simulator/wg3.html ie
But after executing this line nothing happend and i got some information on cmd with below like
usesinglesession =FALSE
Please help me how to run my scripts on batch.
NOTE: Not able to post correct URL's not allowed for new member
Comments
usesinglesession =FALSE is totally right. Please post the whole output. If you run this command, does a browser open. Please post the whole command.
Regards
Wormi
cmd :
sahi\userdata\bin>testrunner.bat myfirst.suite htps:superclientstg2.slonsumerDSLWGP_Simulator/wg3 ie
Response:
test=scripts/myfirst.suite
browserType=ie
baseURL=https:superclientstg2.sl.ca/consumerDSLWGP_Simulatohtml
host=localhost
port=9999
threads=5
useSingleSession=false
suiteName = scripts/myfirst.suite
base = https:superclientstg2.sl.caconsumerDSLWGP_Simulatorwg3.html
sahiHost = localhost
port = 9999
threads = 5
browserType = ie
this.isSingleSession == false
Added shutdown hook.
http:/localhost:9999/_s_/dyn/Suite_start?suite=scripts%2Fmyfirst.suite&base=htt
ps%3A%2F%2Fsuperclientstg2.sl.ca%2FconsumerDSLWGP_Simulator%2Fwg3.html&threads=5
&sahisid=sahi_7a6569080946b04a3608391051bb9737ac7a&browserType=ie&html=
Nothing happend after this, no browser opened.
Also let me know do i need to open sahi Dashboard before running the above command.
also not that i'm using https site for web testing.
Thanks in advance!!
If the browser won't open, check the browser.xml if the settings are right ( e.g. path, options etc)
Problem what i was facing with IE is that on SAHI dashboard it is IE8 and version of IE i'm having is IE6.
so i tried to run it from firefox and it worked fine!!
I'm thinking to Re-install IE , may be then it will work good .
I tried to run it using IE with reinstalling, this time i got IE page opened but nothing is happned after that..script is not running after 150 sec.
Any idea what mistake i'm making?
Is it possible to run a script multiple times?
I have this .bat file that i will run in the command line:
Thanks and regards.
Or just write a loop in some kind of executeSuite.bat?
Maybe you could tell me what benefit you expect from running scripts multiple times?
Thanks for the reply.
For now, i still don't have an answer for the benefit.
For the demo.suite, is it possible to include scripts in different folders?
I would want to create a folder where all *.suite scripts resides.
These *.suite contains *.sah scripts which are residing in other folders as well.
scripts/suite/demo.suite
Thanks and regards.
So, i just rename my demo.suite to demo.sah and initialize demo.sah to be run in console.
I still can't get it to work.
SAHI CONSOLE CMD CONSOLE
you can't name a .suite .sah.. Sahi will think it is a single script to execute..
use demo.suite and fill it with paths to scripts
Also:
browserPath=null? firefox: FAILURE?
there may be a problem with you browser.xml?
And why is there an report.xml error? I don't see no option like "-xmlLog true" is this normal? May be due to Sahi Pro but I am not sure.