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.
DAntSync Ant Task issue
Hi,
I try to run sahisync target with ant script, but I have this error:
sahisync doesn't support the nested "node" element.
my demo.xml is:
<taskdef name="sahisync" classname="in.co.sahi.ant.DAntSync" classpath="lib/ant-sahi.jar"/>
<target name="synconly">
<sahisync originFolder="userdata/scripts" destFolder="scripts" ignorePattern=".*(svn|copied).*" >
<node host="hkhkgaptest01" port="9999"/>
<node host="frc0lw01183" port="9999"/>
</sahisync>
</target>
Any idea ?
Tanks for Help.
I try to run sahisync target with ant script, but I have this error:
sahisync doesn't support the nested "node" element.
my demo.xml is:
<taskdef name="sahisync" classname="in.co.sahi.ant.DAntSync" classpath="lib/ant-sahi.jar"/>
<target name="synconly">
<sahisync originFolder="userdata/scripts" destFolder="scripts" ignorePattern=".*(svn|copied).*" >
<node host="hkhkgaptest01" port="9999"/>
<node host="frc0lw01183" port="9999"/>
</sahisync>
</target>
Any idea ?
Tanks for Help.
Comments
I found the solution.
When I look (with Eclipse) DAntSync methods, I can see addConfiguredDNode method.
This method is called by Ant when a dnode element is found.
So, use:
<sahisync .... >
<dnode host="pc" port="9999"/>
<dnode host="mac" port="9999"/>
</sahisync>
instead of :
<sahisync .... >
<node host="pc" port="9999"/>
<node host="mac" port="9999"/>
</sahisync>
Thanks for pointing this out. Looks like we failed to update that task correctly.
Please note that you can also do the sync directly from inside sahid (Search for drun target in demo.xml) That uses node and not dnode.
We will mostly be fixing sahisync so that it uses "node" instead of "dnode". We will update you if and when we change that.
Thanks and regards,
Narayan
Thanks for your reply.
In fact, with drun task sync node works fine. But I found synconly task more appropriate.
In my case, I use two Ant task, the first sync my nodes and the second launch Sahi test only.
In this way I can launch my Sahi tests without sync.
Regards,
Nizar.