[Webtest] Repeat Actions

Chris Hane webtest@lists.canoo.com
Wed, 29 Jan 2003 13:33:56 -0600


--=======64ED339=======
Content-Type: text/plain; x-avg-checked=avg-ok-7D6635BA; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit

Thanks, unfortunately I don't believe repeat gets me what I want.  Repeat 
does not allow for parameters to be dynamically modified between 
calls.  For example, pass one productID=12345 and pass two 
productID=9876.  Unless I'm missing something.....

Chris....

At 1/27/2003 11:41 PM, you wrote:

>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
>_______________________________________________
>WebTest mailing list
>WebTest@lists.canoo.com
>http://lists.canoo.com/mailman/listinfo/webtest

--=======64ED339=======--