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.
Get SAHI reports in xml format using ant
I am using ant to execute the sahi suite [excel framework]. Want to get reports in xml format. Have done the following steps.
Changed the following attributes in sah.properties file
reports.filesystem.html.enabled=true
reports.filesystem.xml.enabled=true
My ant file
<sleep seconds="4"/>
<sahi suite="${user.data}/scripts/AddPayee.suite"
browserType="firefox"
baseurl="${urlbase}"
sahihost="localhost"
sahiport="9999"
failureproperty="sahi.failed"
haltonfailure="false"
browserProcessName="firefox"
threads="3">
<report type="html" logdir="${user.data}/temp/html"/>
<report type="junit" logdir="${user.data}/temp/junit"/>
</sahi>
</target>
Got the xml reports as follows which is not having enough information about the test cases and its status.
<?xml version="1.0" encoding="UTF-8"?>
<testsuite errors="0" failures="0" name="default." tests="1" time="143.209">
<testcase classname="default." name="BP_Regression_TestCase1.xls" time="143.209">
</testcase>
</testsuite>
Pls let me know hot to get the appropriate information in the xml report.
Changed the following attributes in sah.properties file
reports.filesystem.html.enabled=true
reports.filesystem.xml.enabled=true
My ant file
<sleep seconds="4"/>
<sahi suite="${user.data}/scripts/AddPayee.suite"
browserType="firefox"
baseurl="${urlbase}"
sahihost="localhost"
sahiport="9999"
failureproperty="sahi.failed"
haltonfailure="false"
browserProcessName="firefox"
threads="3">
<report type="html" logdir="${user.data}/temp/html"/>
<report type="junit" logdir="${user.data}/temp/junit"/>
</sahi>
</target>
Got the xml reports as follows which is not having enough information about the test cases and its status.
<?xml version="1.0" encoding="UTF-8"?>
<testsuite errors="0" failures="0" name="default." tests="1" time="143.209">
<testcase classname="default." name="BP_Regression_TestCase1.xls" time="143.209">
</testcase>
</testsuite>
Pls let me know hot to get the appropriate information in the xml report.
Comments
When you need more information you have to modify Sahis sourcecode... you may get more information when you use the _runUnitTests() Api, but i don't think so..
Regards
Wormi
Check out Sahi Pro which gives detailed logging in XML and also lets you convert the logs to any other format you want.
Regards,
Narayan