18 January 2026:


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 execute Ant build script through sahi.

PriyaPriya Members
edited November -1 in Sahi - Open Source
Hi Narayan,

Is there any way to execute the ANT build.xml through sahi.

ex:
test.sah file should be able to execute build.xml.

<project name="proj" default="ReadFromServer">
<target name="ReadFromServer">
<sshexec host="192.168.2.6"
port="22"
trust="true"
username="user"
password="password"
command="date"/>
</target>
</project>

i want build the above xml through sahi script,can it be done?

Comments

  • narayannarayan Administrators
    Instead of this I would suggest you use Java's Runtime.exec and invoke the command, and then read from the outputstream.
Sign In or Register to comment.