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.
Need documentation on Sahi Ant Task
From the demo.xml ant build file packaged with Sahi I can the sahi ant task seems to support some nested element parameters like
<report/> etc
<report type="html" />
<report type="junit" logdir="${basedir}/temp/junit"/>
I couldn't find any documentation on what these parameters do ?
Can you please include more documentation on what are parameters for the sahi ant task.
Are there any other nested elements than "report".
If so what is the use of each of them ?
What other "types" does the report element support ?
What are the use of each "type" ?
<report/> etc
<report type="html" />
<report type="junit" logdir="${basedir}/temp/junit"/>
I couldn't find any documentation on what these parameters do ?
Can you please include more documentation on what are parameters for the sahi ant task.
Are there any other nested elements than "report".
If so what is the use of each of them ?
What other "types" does the report element support ?
What are the use of each "type" ?
Tagged:
Comments
Those are the only reports supported right now.
html creates the regular reports as seen in the logs.
junit creates junit style logs in the specified directory.
Are you facing problems in getting the ant task to work? Are you looking for something specific?
Regards,
Narayan
I have one request for Sahi Ant Task :
If the results directory can be specified it would be great.
What happens right now is that the results are created in a sub-directory of the directory specified in the ant task ?
If I wanted to email/copy/process the results, I'd have to search for the latest modified directory and do further processing etc. Doing this in Ant is not really simple.
I would like the results to be in the same directory specified in the ant task. Is this possible ?
Same request for the JUnit XML results files.
They should have a constant name that I specify.
If I do not specify a name then it can be named as it is named right now.
thanks,
Hari
<report type="html" logDir="path/to/log/directory"/>
I must say this is not well tested and hence not documented. If you have success with this, I will document it
Please go ahead and document the same.
But the result html files also exhibit the same issue :
testcase1__16Jul2009__20_47_22.htm
testcase2__16Jul2009__20_47_26.htm
instead of
testcase1.htm
testcase2.htm
This is ok for HTML reports.. But for JUnit report xmls it is an issue :
TEST-testcase1__16Jul2009__20_47_22.xml
TEST-testcase2__16Jul2009__20_47_26.xml
It would be better if it was
TEST-testcase1.xml
TEST-testcase2.xml
since I want to further process these JUnit result xmls