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.
Running a test suite
Hi,
In a test suite if lets say there are 5 scripts and the first script fails then how to make sahi read the consequtive scripts .If the first script fails then sahi is not able to go to next script.
Kindly help in solving the above issue
Thanks
In a test suite if lets say there are 5 scripts and the first script fails then how to make sahi read the consequtive scripts .If the first script fails then sahi is not able to go to next script.
Kindly help in solving the above issue
Thanks
Comments
Could you please try running the next script from the controller and check if its working fine?
Also, check if there are any error message on Logs or on Sahi console? If so ,then please post it here.
Regards
Sumitra
I guess i could not make myself clear.Let me explain you with an example.
I have a test suite which has 5 scripts,this test suite will run at one shot.
So lets say tets suite has script1 ,script 2 and script 3 ,script 4 and script 5.All these need to run together.
So script starts to execute :
/script 1
logout/
Successful
/script 2
logout/
failed
Now in this case will sahi be able to read the third script and execute it.
If you run your scripts in batch mode, you will have the freedom to run them in parallel or sequentially. In both the cases, the scripts should run irrespective of a failure in the previous script.
Open sahi/userdata/bin/testrunner.bat and set SINGLE_SESSION to false
Also, set THREADS to 5
Save.
Now, navigate to sahi/userdata/bin from the terminal and execute it like so:
This will run the scripts in parallel. Script 3 will be executed even if Script 2 fails.
Please refer this article to get a better view of how Sahi works with suites.
Regards,
dkulkarni
Thank you for help.
Following the steps given I was able to create a batch file with extension as .suite
Now when I am trying to replay that suite the sahi controller is not able to point to that suite and its not displaying in the dropdown list.
Kindly help and suggeset where I have gone wrong.
Please use command prompt or ANT to run test suite, Suite file will not displayed in controller.
have a look at this link
http://sahi.co.in/w/Running+multiple+tests+in+batch+mode
Regards
Raja
C:\Documents and Settings\garima_a\sahi\userdata\bin>testrunner.bat bill_old.sui
te http://localhost/login.jsp ie
test=scripts/bill_old.suite
browserType=ie
baseURL=http://localhost/login.jsp
host=localhost
port=9999
threads=3
useSingleSession=false
suiteName = scripts/bill_old.suite
base = http://localhost/login.jsp
sahiHost = localhost
port = 9999
threads = 3
browserType = ie
this.isSingleSession == false
Added shutdown hook.
http://localhost:9999/_s_/dyn/Suite_start?suite=scripts/bill_old.suite&base=ht
tp%3A%2F%2Flocalhost%3A8080%2FRMS%2Flogin.jsp&threads=3&sahisid=sahi_4f10aa16
0d6020459a09f6601e1b268522fa&browserType=ie&html=
Use the below:
Also, check if the suite file and the scripts used are in the same folder.Check if there are any error message after you click Logs on the Dashboard.
Regards
Sumitra