[Webtest] [dev] Best way to extend WebTest configuration possibilities
Kappen, Thomas, TECON Terenci
Kappen, Thomas, TECON Terenci" <thomas.kappen@tecon-group.com
Thu, 1 Mar 2007 14:41:27 +0100
This is a multi-part message in MIME format.
------_=_NextPart_001_01C75C07.4FE7D31A
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi Marc,
please forgive the response to your suggestions. But I'm occupied by the
projects in our office.
Your proposal to solve the issue does make sense. Sadly, I'm not
familiar with the configuration options b, c, and d. And I'm afraid they
are not documented very well. Actually, I didn't find any information
about these options on the projects home page.
If you implement the issue as you proposed, can you give me a sample
script/code how to use a custom PageCreator, please?
Subsequently, another minor issue pops up. XHTML responses will be
logged as xml files. It would be nicer, if they would be logged with the
.html extension (see the attached patch).
Kind Regards,
Thomas
PS: When do you plan the next release of Canoo WebTest?
-----Original Message-----
From: Marc Guillemot [mailto:mguillemot@yahoo.fr]=20
Sent: Donnerstag, 22. Februar 2007 13:47
To: webtest@gate2.canoo.com
Subject: [Webtest] [dev] Best way to extend WebTest configuration
possibilities
Hi,
currently we have basically 4 kinds of possibilities to configure
WebTest:
(a) using one of the existing <config> attributes
(b) using a System property (like webtest.connectioninitializer)
(c) calling a static helper method like XPathHelper.registerGlobalXxxx
(d) using a script step within <webtest> to configure the running test
WT-270 (http://webtest-community.canoo.com/jira/browse/WT-270) contains=20
a patch from Thomas Kappen following way (a) to allow to specify the=20
class name of a custom PageCreator. This way is fully valid but first I=20
fear that too many configuration options have the same right to belong=20
to config than PageCreator. Second this requires having the custom class
present in the classpath.
What about defining a key like "webtest.hotspot.pageCreator" and using=20
it to look in Project's reference map for a customized entry? (for info:
an Ant Project can contain references to any kind of objects in this=20
map) WebTest could look at it during configuration and use the page=20
creator it finds there if any. Major advantage: it would be possible to=20
define a custom page creator on the fly with for instance a small Groovy
script. This strategy could be used for other extension points. The only
"issue" here concern the documentation. I can imagine adding new xdoclet
tags to generate this documentation automatically and to keep it
accurate.
Any thoughts?
Marc.
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest
------_=_NextPart_001_01C75C07.4FE7D31A
Content-Type: application/x-zip-compressed;
name="webtest_R_1393_patch_mimeTypes.zip"
Content-Transfer-Encoding: base64
Content-Description: webtest_R_1393_patch_mimeTypes.zip
Content-Disposition: attachment;
filename="webtest_R_1393_patch_mimeTypes.zip"
UEsDBBQAAAAIAG5rYTbRJajd2QEAACYFAAAaAAAAUl8xMzkzX21pbWVUeXBlc19wYXRjaC50eHS1
Ul1vmzAUfR5S/sNVnmAEHNKtWtttSqVs2tRFqrb2rRJywANvYCPbfGnKf68NIoWtWjpNvQ9gwT3n
Hp9zP7OYNOewOUc/cIWRSqmICyxUi2qyU0Sq8GsYnJydhAVWURpukBQRiniOIsw4H5oQYQllBG1p
Tra48A3XzHr3/zWzPM97DnUvbEEqKilnEJwuX62cmeW67vNMqrn4SVkCES9aPWe9Bu/s9eIUXP0M
VrBezywYavPh4+Xtl5twe3ntF6Wy5xWNCUeNJ3DsyUgQwooMt/MFzHHVzJ2LJ0BlQr2cV5QYVH/4
K67xtOIs1shK5JkB1SIzEHeAIATXxgfYXIDkWak6H8Hz3oNU2rVJZ5OqPIPhvcOSRg///xiOiyKj
ETaMqEO4Ta/BnH8X0VPmxRP5Khb7tY7lKO9jl3urF5GwuPdtb4E1NJuw4aYtiASZ8jKLQfAySbMW
dkRnziSVijAFNVUpfNLTbhlV3RYEy5VZg2D5ZhEE0z2g38Ee30XzKEyZvCKtbc6a0Ix0HPj1ADIl
iCoFA/ubEnrnnIkhCVET8GgJ9kfuv3osXCNyxOfnBkbk1HT/ZWf33V1neCf4QDAS3OcwiuG4okki
/6BnLGWs5CCl6ZQcPu+te1BLAwQUAAAACACrWGE29Eu2K/UFAAA/GAAADAAAAE1pbWVNYXAuamF2
YZ2YbW/bNhCAvwfIf7j6Q5dkkZwG3YAh67CsdV/QJgvWFF2HAgEtnSUmEqmSlCW36A/av9yRlB0r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