[Webtest] Building suites and removing duplication
Johannes Link
webtest@lists.canoo.com
Fri, 17 May 2002 12:21:41 +0200 (MEST)
Hi Dierk,
> BTW: you don't need to do the entity def in a dtd. You can
> extract whole xml nodes in external files.
Do you refer to the SYSTEM command in the DTD or something else?
> If that does not address your problem:
> How would a WebTest look like, where your problem is solved?
I could imagine something like:
<defstep name="mytask">
<param name="param1"/>
<invoke ...>
<verify ... text=${param1}/>
</stepdef>
used as:
<callstep name="mytask">
<param name="param" value="value1">
</callstep>
However I'm not sure if this really helps. Alternatively one could have
another xslt step which transforms our xml (without duplication etc.) into a
proper webtest xml file. But well, I'm not very enthusiastic about this "meta
programming with xml/xslt" since it is very difficult not to loose control and
overview when faced with several transformations in a row.
Johannes
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net