[Webtest] Repeat Actions
Aatish Arora
webtest@lists.canoo.com
Mon, 27 Jan 2003 21:41:02 -0800 (PST)
Hi Chris,
Im a newbie with Canoo myself but I think this can be
done. Checkout :
http://webtest.canoo.com/webtest/manual/syntax.html#23
The <repeat> test step would do the trick ;)
The example given (repeat 1) uses something similar to
what you would require. The repetion counter is used
in the steps that follow.
Best of Luck!
with regards,
Aatish Arora
--- Chris Hane <chris@itsolut.com> wrote:
---------------------------------
Is it possible to call a step fragment multiple times
with differentparameters? For example,
I have a fragment that adds items to an order entry
form. There isa parameter in the fragment for the
product identifier. However, Ican assign the
parameter only once from the calling steplist. Has
anyone else figured a way to call the same
parameterizedxml step fragment multiple times from the
same testSpec? I figurethe answer is no, just wanted
to verify my assumptions about how antworks.
Example:
<property name="productParameter"value="XXXXX"/>
[testSpec]
<snip/>
<steps>
&newOrder;
&addItem;
&addItem;
</steps>
<snip/>
[addItem]
<snip/>
<setinputfield
name="productID"value="${productParameter}"/>
<snip/>
Thanks,
Chris....
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com