R: [Webtest] Passing custom properties to WebTest report file (xml)
Vito Caleandro
webtest@lists.canoo.com
Tue, 27 Sep 2005 13:22:08 +0200
Hi Marc,
thank you for your kind reply; in effect I am looking for satisfy this need:
suppose I have to trace some "quality" of a test run, such as a sort of
scenario characteristics like the type of deployment or software packaging
or the name of test supervisor or any other property that I had in mind.
Suppose that I want to record those informations setting some properties in
the ant script.
How can I let them to migrate toward the xml report file so that I can
manipulate them with the xslt transformations and then see them in the html
report?
I am still doing some advanced experiments with the tool, I think it is very
useful end effective. Actually I already use the string concatenation for
the <testspecname> but this method seems to have a too little power, seems
too poor.
I hope that my explanation is better this time, (pardon my poor english!).
Thanks,
Vito
-----Messaggio originale-----
Da: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com]Per conto di Marc Guillemot
Inviato: venerdi 23 settembre 2005 17.40
A: webtest@lists.canoo.com
Oggetto: Re: [Webtest] Passing custom properties to WebTest report file
(xml)
I'm not sure to fully understand the question. If you just want to display a
property, you can do something like:
<webtest name="Test for ${myAntProperty}">
...
</webtest>
and you will see the value of the myAntProperty in the report as part of the
name of the test.
If you search for something like:
<webtest name="Test for bug 123">
<bugReportUrl>http://my.trackingSystem/viewBug?id=123</bugReport>
...
</webtest>
to be able to transform it with the xslt to display it for instance as link
in the html page, then it's not possible
currently. I want to add something in this direction since a long time but
didn't found time to realize it until now.
Marc.
Vito Caleandro wrote:
> Hi all,
> I will appreciate to know if there exist a method to let a custom
property,
> defined at ant-script level, to arrive at Webtest report level (like
> parameter elements in the xml-report file) without intervention on source
> code.
>
> Such a method would allow, with some xslt transformation, to obtain more
> information on a WebTest html-report.
> Thank you in advance for any reply.
> Vito Caleandro
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest