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.
Parallel Execution of a suite in Different machines
Hi,
Is there any way to run the suite in different machines which are in the same network by splitting.?
i.e it takes one hour for me to run my recorded scripts but what i want is to reduce the time by performing them in multiple machines...
Thanks in Advance,
Ramu...
Is there any way to run the suite in different machines which are in the same network by splitting.?
i.e it takes one hour for me to run my recorded scripts but what i want is to reduce the time by performing them in multiple machines...
Thanks in Advance,
Ramu...
This discussion has been closed.
Comments
Yes, you can run the suite on different machines by using drun. But this is availabale only in Sahi Pro.
Usage is :
drun demo/demo.suite http://sahi.co.in/demo/ firefox
drun demo/sahi_demo.sah http://sahi.co.in/demo/ ie
drun demo/testcases/testcases_sample.csv http://sahi.co.in/demo/ ie "(user||admi
n)&&medium"
You will have to mention the machine names as:
SET NODES=localhost:9999,othermachine name:9999 in drun.bat by navigating to <sahihome>/userdata/bin/drun.bat.
Let me know if you face any problem.
Regards
Sumitra
Can you tell me how we can run a suite using ant target.
Regards,
Ramu...
You can have a look at the below URL which explains how to run a suite using an ant target.
http://sahi.co.in/w/Running+multiple+tests+in+batch+mode+V3.0
Let me know if you face any issue.
Regards
Sumitra
I am Very new to sahi and i am unable to understand this ant concept. Even in the documentation i didn't get the clear picture for how to run suite through ant, like where to save the ant file and how to execute it... etc. Plz help me...
Regards,
Ramu...
Here is the explanation:
The suite can be executed through the command line or through ant.
Open demo.xml by navigating to <sahi-home>/demo.xml. Here you can find all the ant targets.
If you start Sahi, and then from another command prompt, run
ant -f demo.xml runfftests
or
ant -f demo.xml runietests
You should see the suite running.
You can create you own ant target and place it in any xxxxxx.xml file. Run it like:
ant -f demo.xml runfftests.
For Eg:
In demo.xml if you use: ant -f demo.xml runfftests : will run demo.suite file which is mentioned in the target named runfftests. The ant target for different browsers and for more details to work with it you can follow the below link:
http://sahi.co.in/w/Running+multiple+tests+in+batch+mode+V3.0.
Now you should be able to see the suite running.
There are example files provided in sahi/batch_runners directory for ant, commandline and ruby.
Also, to run the suite on different machines by using drun have a look at below link:
http://sahi.co.in/w/file_download/3/Sahi.pdf
But drun feature is available only in Sahi Pro.
Let me know if you need some more information.
Regards
Sumitra
Thank you for your quick Response. And while i am running ant through command prompt i'm getting a message
" 'ant' is not recognized as an internal or external command,operable program or batch file. "
And by using drun,
drun demo/testcases/testcases_sample.csv http://sahi.co.in/demo/ ie "(user||admi
n)&&medium"
Can you please provide some more explanation...
Thanks in Advance,
Ramu...
1)" 'ant' is not recognized as an internal or external command,operable program or batch file. "
That just means it's not on the path.
Edit your PATH environment variable to include Ant's "bin" directory. The exact steps for editing your path with depend on your operating system, but for example on XP:
•Bring up Explorer (Windows-E)
•Right-click on "My Computer" and select "Properties"
•On the "Advanced" tab, click on "Environment Variables"
•If the set of "user variables" already contains a PATH entry, edit that. Otherwise create a new entry. (If you want it to affect all users, set it as a system environment variable.)
•Add the Ant bin directory without any quotes. Use a semi-colon to separate it from another entry. For example, you might have:
c:\Program Files\Utils;c:\Program Files\Ant 1.7\bin
•Start a new Command Prompt to see the changes (they won't affect existing windows)
2) For drun: drun demo/testcases/testcases_sample.csv http://sahi.co.in/demo/ ie "(user||admin)&&medium". The usuage seems to be correct.
Can you please let me know where exactly you are facing problem and what is the error message you are getting?
Regrads
Sumitra
Thank you so much.
Its working...
Regards,
Ramu...