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.
Sahi 4.0 multiple threads limit ?
Hi,
we are testing you 4.0 Sahi PRO solution and it seems to work fine ;-) but we have a little question for you.
Our configuration is :
Windows 2003 Server on a Quad-core with 2 GB of Ram.
Sahi version is 4.0 PRO with temporary licence.
We are trying to execute multuple instances of IE7 in a single suite command file but even if we changed the TestRunner.bat parameter from 5 to 20 we can obtain only 5 simultaneous IE sessions.
I looked for some other place where this parameter could be setted up but i didn't found anything else.
Can you suggest me any good solution ?
Here is our TestRunner.bat file
SET SAHI_HOME=..\..
SET USERDATA_DIR=..\
SET SCRIPTS_PATH=scripts
SET START_URL=http://www.google.it
SET THREADS=20
SET SINGLE_SESSION=false
SET LOGS_INFO=
java -cp %SAHI_HOME%\lib\ant-sahi.jar net.sf.sahi.test.TestRunner -test %SCRIPTS_PATH%/monitoraggio1.suite -browserType ie -threads %THREADS% -useSingleSession %SINGLE_SESSION% -baseURL "%START_URL%" -host localhost -port 9999 -logsInfo "%LOGS_INFO%"
TIA
Massimo Borgogno
we are testing you 4.0 Sahi PRO solution and it seems to work fine ;-) but we have a little question for you.
Our configuration is :
Windows 2003 Server on a Quad-core with 2 GB of Ram.
Sahi version is 4.0 PRO with temporary licence.
We are trying to execute multuple instances of IE7 in a single suite command file but even if we changed the TestRunner.bat parameter from 5 to 20 we can obtain only 5 simultaneous IE sessions.
I looked for some other place where this parameter could be setted up but i didn't found anything else.
Can you suggest me any good solution ?
Here is our TestRunner.bat file
SET SAHI_HOME=..\..
SET USERDATA_DIR=..\
SET SCRIPTS_PATH=scripts
SET START_URL=http://www.google.it
SET THREADS=20
SET SINGLE_SESSION=false
SET LOGS_INFO=
java -cp %SAHI_HOME%\lib\ant-sahi.jar net.sf.sahi.test.TestRunner -test %SCRIPTS_PATH%/monitoraggio1.suite -browserType ie -threads %THREADS% -useSingleSession %SINGLE_SESSION% -baseURL "%START_URL%" -host localhost -port 9999 -logsInfo "%LOGS_INFO%"
TIA
Massimo Borgogno
Comments
Good to hear from you. There is a "capacity" configured in sahi/userdata/config/browser_types.xml which sets the maximum capacity of your machine to handle simultaneous requests and has a default value of 5. You can change it to 20 if you think your machine can handle it. If threads > capacity, the capacity is used.
Regards,
Narayan