Hi Bernd
to create the summary report set the following properties in the config tag:
<config
summary="true"
resultpath="${webtest.home}/testresults"
resultfile="WebTestResults.xml"
/>
to format the "results.xml" to html use the following ant script:
<project name="myFirstTest" basedir="." default="formatResults">
<property name="webtest.home" value="${basedir}/.."/>
<property name="webtest.config.resultpath"
value="${webtest.home}/testresults"/>
<property name="webtest.config.resultfile" value="WebTestResults.xml"/>
<property name="webtest.config.resultfile.html"
value="${webtest.config.resultpath}/results.html"/>
<target name="formatResults" description="formats the xml result
file using the xslt">
<tstamp>
<format property="report.time" pattern="dd.MM.yyyy HH:mm"
locale="de"/>
</tstamp>
<property name="resources.dir" value="${webtest.home}/resources"/>
<style
basedir="${webtest.config.resultpath}"
destdir="${webtest.config.resultpath}"
includes="${webtest.config.resultfile}"
force="true"
extension=".html"
style="${resources.dir}/WebTestReport.xsl">
<param name="reporttime" expression="${report.time}"/>
<param name="title" expression="${ant.project.name}"/>
</style>
<!-- copy resources needed by the html page to the same dir: the
report must be ok too when opened from filesystem (without webserver) -->
<copy todir="${webtest.config.resultpath}">
<fileset dir="${resources.dir}">
<include name="report.css"/>
<include name="showHide.js"/>
<include name="images/*.*"/>
</fileset>
</copy>
<echo message="Webtest result overview available in
${webtest.config.resultfile.html}"/>
</target>
<taskdef file="${webtest.home}/webtestTaskdefs.properties">
<classpath>
<pathelement path="${webtest.home}/lib"/>
<fileset dir="${webtest.home}" includes="**/lib/*.jar"/>
<fileset dir="${webtest.home}"
includes="lib/runtime/*.jar"/>
</classpath>
</taskdef>
</project>
be sure, that the directories structure is as follows or set the
properties correctly:
myTests your WebTests
resources resources from the downloaded build.zip
testresults includes the results from your test, *.xml an after
formating also the *.html
I hope it works for you
Cheers
Stefan Ruff
Siegfried Goeschl wrote:
Hi Bernd,
unfortunately I'm the least qualified person to help you with ANT
since I never used it together with Canoo WebTest .... :-)
1) you need to create the summary report plus the HTML responses -
check the docs
2) there is an ANT style task for the XSLT transformation - the XSL is
found somewhere in the build.zip or src.zip
3) you have to copy around the resources which are referenced by the
reports
4) you might also copy your gifs, css you use internally to get proper
looking HTML responses
Most of the steps you can find here
http://cvs.sourceforge.net/viewcvs.py/maven-plugins/maven-plugins/webtest/plugin.jelly?rev=1.15&view=auto
Cheers,
Siegfried Goeschl
PS: Maybe there is someone who helps with a complete ANT script
PSPS: If you code an ANT snippet you could post it on the WIKI
[EMAIL PROTECTED] wrote:
Hallo Siegfried,
vielen Dank für Deine Antwort.
Eine XSL Transformation wäre genau das was ich suche.
Wie kann ich mir das Ergebnis in einem XML report anzeigen lassen?
Das einzige, was ich sehen kann, ist das ANT output mit:
[invoke]...
[verifyTitle]...
BUILD_SUCCEEDED
Diesen Output kann ich natürlich sehr schlecht verwerten, also ein
XML wäre schon besser. Kannst Du mir sagen, wie das geht?
Vielen Dank für Deine Hilfe,
Bernd aus München
[email protected] schrieb am 14.02.06 15:46:31:
Hi Bernd,
there is an XSL to transform the XML report to an HTML report
Cheers,
Siegfried Goeschl
[EMAIL PROTECTED] wrote:
Hello dear WebTest Subscribers,
I am a real newbie to WebTest and have a question.
What I did: I installed WebTest and was running the sample "webtest
-buildfile installTest.xml". I see that the test is checking the
HTML-Title and is resulting in "BUILD_SUCESSFULL".
What I want: I will have a lot of testcases, so I want to deliver
automated reporting. Is there a better way to grep the results than
parsing the logfile for "BUILD_SUCCESSFULL" or "BUILD_FAILED"?
Thank you for any hint!
Bernd
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest