[Webtest] How to read dbunit-export-files as webtestproperties
Denis N. Antonioli
webtest@lists.canoo.com
Thu, 12 Jan 2006 17:56:52 +0100
Hi
On 12 janv. 06, at 17:20, St_Germain@web.de wrote:
> I'm a novice in XML, XSL, ant and WebTest but there is the problem,
> that I'll need the COL1, COL2 several times in my step.
> Can I use the property-file as property-table or an ImportDataStep.
>
> I'll have do a for-each loop in the nested-step.
> Something like that:
> <webtest>
> <invoke url=""/>
> [...]
> <step>
> for each cutsomer in XML-FILE
> do
> <!-- webtest-step -->
> <clickLink label="${COL1}"/>
> <verifyText text="${COL2}"/>
> done
> </step>
> [...]
> </webtest>
>
> COL1, COL2 etc. are the looping names of the values.
> COL1 has multiple-values ...
>
> So is there any idea how i can do my work?
is it possible to change to:
for each customer in XML-File
do
<webtest>
<steps>
<invoke url="" />
[...]
</steps>
</webtest>
done
i.e. runs independent webtests for each row in your file?
If you can, have a look at xmltask <http://www.oopsconsultancy.com/
software/xmltask/>
Happy testing
dna
--
A message consists of header fields and, optionally, a body.
-- Official definition of e-mail in RFC 822