[Webtest] HTML test report

Jan Nielsen webtest@lists.canoo.com
Thu, 6 Apr 2006 08:05:15 -0600


Frank,

Very nice - just what I was looking for as well. This would make a nice=20
addition to the WebTest manual.

Many thanks!

-Jan



Jan Nielsen * System Architect * SunGard Higher Education * Tel +1 801 257 =

4155 * Fax +1 801 485 6606 * jan.nielsen@sungardhe.com * www.sungardhe.com =

* 90 South 400 West, Suite 500, Salt Lake City, UT

CONFIDENTIALITY: This email (including any attachments) may contain=20
confidential, proprietary and privileged information, and unauthorized=20
disclosure or use is prohibited.  If you received this email in error,=20
please notify the sender and delete this email from your system. Thank=20
you.



Frank Langanke <frank.langanke@etvice.com>=20
Sent by: webtest-admin@gate2.canoo.com
04/06/2006 07:42 AM
Please respond to
webtest@gate2.canoo.com


To
webtest@gate2.canoo.com
cc

Subject
Re: [Webtest] HTML test report






Petter M=E5hl=E9n wrote:
> Hi,
>=20
> I'm sure this is some easy thing that I am overlooking, but I have spent =

a
> couple of hours on trying to figure out how to produce a report of the=20
test
> results that looks something like the one on
> http://webtest.canoo.com/webtest/reports/selftest/WebTestReport.html. Is =

it
> possible to do this automatically, and if so, how do I do it?
>=20
> Thanks,
>=20
> Petter
>=20
> Cell: +46 704 40 30 25
> Direct: +46 8 442 75 95
> Fax: +46 8 24 05 08
> www.jadestone.se
> Bj=F6rns Tr=E4dg=E5rdsgr=E4nd 1, 116 21 Stockholm, Sweden
>=20
> =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest

Hi Petter,

I assume you're using ant to define and run your tests.

1) You have to set the attributes "summary" and "saveresponse" in your=20
config-task to true.

2) Copy the target "formatResults" from=20
{webtest.home}/ressources/webtestsRunner.xml to your ant-buildfile. You=20
have to set the used properties to your setup.

                 <property name=3D"webtest.config.resultpath"=20
value=3D"${webtest.testdir}/webtest-results"/>
                 <property name=3D"webtest.config.resultfile"=20
value=3D"results.xml"/>
                 <property name=3D"webtest.config.resultfile.html"=20
value=3D"${webtest.config.resultpath}/results.html"/>

3) Execute the target. It should convert the results.xml to a=20
result.html looking like the one you asked for.

Bye,

Frank.


=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest