[Webtest] Repeat Actions
Chris Hane
webtest@lists.canoo.com
Mon, 27 Jan 2003 14:23:42 -0600
--=======7B196F47=======
Content-Type: text/html; x-avg-checked=avg-ok-4C203B0C; charset=us-ascii
Content-Transfer-Encoding: 8bit
<html>
<body>
Is it possible to call a step fragment multiple times with different
parameters? For example,<br><br>
I have a fragment that adds items to an order entry form. There is
a parameter in the fragment for the product identifier. However, I
can assign the parameter only once from the calling step
list. Has anyone else figured a way to call the same parameterized
xml step fragment multiple times from the same testSpec? I figure
the answer is no, just wanted to verify my assumptions about how ant
works.<br><br>
<br>
Example:<br>
<property name="productParameter"
value="XXXXX"/><br>
[testSpec]<br>
<snip/><br>
<steps><br>
&newOrder;<br>
&<b>addItem</b>;<br>
&<b>addItem</b>;<br>
</steps><br>
<snip/><br><br>
<br>
[addItem]<br>
<snip/><br>
<setinputfield name="productID"
value="$<b>{productParameter}</b>"/><br>
<snip/><br><br>
Thanks,<br>
Chris....</body>
</html>
--=======7B196F47=======--