[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?&nbsp; For example,<br><br>
I have a fragment that adds items to an order entry form.&nbsp; There is
a parameter in the fragment for the product identifier.&nbsp; However, I
can assign&nbsp; the parameter only once from the calling step
list.&nbsp; Has anyone else figured a way to call the same parameterized
xml step fragment multiple times from the same testSpec?&nbsp; I figure
the answer is no, just wanted to verify my assumptions about how ant
works.<br><br>
<br>
Example:<br>
&lt;property name=&quot;productParameter&quot;
value=&quot;XXXXX&quot;/&gt;<br>
[testSpec]<br>
&lt;snip/&gt;<br>
&nbsp; &lt;steps&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp; &amp;newOrder;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;<b>addItem</b>;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &amp;<b>addItem</b>;<br>
&nbsp;&nbsp; &lt;/steps&gt;<br>
&lt;snip/&gt;<br><br>
<br>
[addItem]<br>
&lt;snip/&gt;<br>
&lt;setinputfield name=&quot;productID&quot;
value=&quot;$<b>{productParameter}</b>&quot;/&gt;<br>
&lt;snip/&gt;<br><br>
Thanks,<br>
Chris....</body>
</html>

--=======7B196F47=======--