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.
Install SAHI on remote server and run tests from local machines.
Hello All,
I would like to know if it will be possible to Install SAHI on remote server and run tests from local machine on an application running in that remote server or on another server. And it should be possible to run test from different local machines.
Example: SAHI is installed in a server located in Germany. Execute sahi scripts from a local machine in India or from another machine in Germany.
Regards,
Sreekanth.
I would like to know if it will be possible to Install SAHI on remote server and run tests from local machine on an application running in that remote server or on another server. And it should be possible to run test from different local machines.
Example: SAHI is installed in a server located in Germany. Execute sahi scripts from a local machine in India or from another machine in Germany.
Regards,
Sreekanth.
Best Answer
-
Hi Sreekanth,
I guess it must be possible, one way is via drun and we are in the process of implementing this.
I had earlier used a remote server but not unlike you from a different location but rather it was from the same location and kept sahi running on this machine. And used to trigger scripts via hudson which creates a new workspace and runs a particular batch file.
Others:- Please correct me if i am wrong.
Answers
Thanks for reply.
I belive drun is only available in pro version.
on Hundson.
I have worked with sahi and Jenkins earlier. but that was only for a short while and only used my local system to do the work.
I really dont understand how it will be possible to for me to start sahi on a remote machine using jenkins and then execute scripts from my local machine using sahi running on that remote machine.
it will be great help if you can give me with more information on how to modify the jenkins xml file.
Can anyone tell me how to start a batch file using ant.
Both server and local machines are windows.
This is what i am trying to do.
have installed SSH server in machine 250. and i am able to run the batch file "runSahi.bat" from local machine using putty.exe
but, using jenkins, it simply dont work. i have given path of the batch file in environment variables.
<target name="456">
<sshexec host="11.100.102.250"
username="username"
password="pass"
trust="true"
command="runSahi.bat"/>
</target>
We use ant's build.xml to invoke sahi Proxy, run the batches.we run build.xml from jenkins
We have also integrated TestNG framework.
Please find the sample target that we use to run our batches from build.xml
<!-- Run Batch1.xml -->
<target name="RRDMS_Batch1" description="Running test">
<echo>Running...</echo>
<taskdef resource="testngtasks" classpathref="libs"/>
<testng haltonfailure="false"
useDefaultListeners="false"
delegateCommandSystemProperties="true"
classpathref="libs">
<xmlfileset dir="${basedir}" includes="Batch1.xml" />
</testng>
</target>