[Webtest] Need help in writing webtest script
Venkatesh Babu
webtest@lists.canoo.com
Thu, 6 Jul 2006 02:17:51 -0700 (PDT)
Hello All,
Thanks for your response. The retry step was perfect
for my problem.
-Venkatesh
--- Dierk Koenig <dierk.koenig@canoo.com> wrote:
> your requirements seem to call for using the
> retry
> step.
>
> cheers
> Mittie
>
> > -----Original Message-----
> > From: webtest-admin@lists.canoo.com
> > [mailto:webtest-admin@lists.canoo.com]On Behalf Of
> Venkatesh Babu
> > Sent: Montag, 26. Juni 2006 8:00
> > To: webtest@lists.canoo.com
> > Subject: [Webtest] Need help in writing webtest
> script
> >
> >
> > Hello All,
> >
> > I have to write a webtest script with the
> following
> > requirement:
> >
> > Invoke a particular URL, until a particular DIV
> > doesnot get a particular value.
> >
> > I tried writing the following sequence of steps,
> but
> > failed to get the desired behavior (The script
> always
> > iterates for 10 times even after the DIV gets the
> > required value):
> >
> > <repeat count="10" description="Assuming that by
> the
> > time count reaches 10 the DIV would have the
> required
> > value">
> >
> > <ifStep description="Repeat the invocations
> until
> > required pricing level is
> > obtained"
> > unless="#{got.required.pricinglevel}">
>
> > <invoke url="${microsite.url}"/>
> > <storeXPath
> >
> xpath="//div[@id='PRICING_LEVEL_INPUT']"
> > property="pricinglevel.obtained"
> > propertyType="dynamic" />
> > <if>
> > <equals
> arg1="#{pricinglevel.obtained}"
> >
> arg2="${result.expected.pricinglevel}"
> > />
> > <then>
> > <storeProperty
> > name="got.required.pricinglevel"
> > value="true" propertyType="dynamic" />
> > </then>
> > </if>
> > </ifStep>
> > </repeat>
> >
> > Is anything wrong here?? Or can anybody help me
> and
> > let me know what is the right approach for the
> problem
> > I'm having?
> >
> > Thank you,
> > Venkatesh
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > WebTest mailing list
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com