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.
how to generate xml and html log report through Ant
Hii all,
I am running my test suite through Ant and here the html report is not being stored in playback.
I want know to whether we can put some command in ant script to generate both xml and Html report.
thank you
regards
chinmaya
I am running my test suite through Ant and here the html report is not being stored in playback.
I want know to whether we can put some command in ant script to generate both xml and Html report.
thank you
regards
chinmaya
Comments
May i know which version of Sahi are you using?
Have you looked at the logs generated by Sahi when running a suite? It already creates HTML logs.
Could you please tell me what steps did you follow?
Could you please verify if you have added
<report type="html"/>
<report type="junit" logdir="${userdata.dir}/temp/junit"/> to your xml file.
Regards
Sumitra
I am using demo version of sahi pro 4.0
When running through Ant , if I am clicking the logs link on the dashboard it displays the html log but when I am searching it in playback folder there is nothing.
I have already tried your code , it only stores a junit report in "temp " folder but no html logs in plaback folder .But actually I want complete xml and Html report in the playback .
Instead I am using the following code, its working but here the index.html and index.xml is being replaced with newer test case.
<report type="html" logdir="${userdata.dir}/custom_log_reports/"/>
<report type="xml" logdir="${userdata.dir}/custom_log_reports/"/>
regards
chinmaya
This is an expected behaviour.
If you do not want the custom reports to be overwritten then you can use it as:
<report type="html" logdir=""/>
Regards
Sumitra