Mabye my programming skills are not good enough but I can't get this working.
I don't know how make test to end after certain ifStep passes or even work
like a while-loop. I've tried to manipulate endCount and counterName but I
can't get them fixed inside the repeat-loop and I don't know any other way
to do this. This is what I tried:
<storeProperty name="end" value="2" />
<repeat endCount="#{end}">
<storeProperty name="end" value="1" />
</repeat>
I tried to manipulate counterName also but it did not work either.
-Juho
Jonathan Rosenberg-2 wrote:
>
> This is just what you need:
>
> http://webtest.canoo.com/webtest/manual/repeat.html
>
> --
> Jonathan Rosenberg
> Founder & Executive Director
> Tabby's Place
> http://www.tabbysplace.org
>
>
> --
> Jonathan Rosenberg
> Founder & Executive Director
> Tabby's Place
> http://www.tabbysplace.org
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of mascis
> Sent: Friday, August 20, 2010 6:06 AM
> To: [email protected]
> Subject: [Webtest] While -step in Webtest
>
>
>
> I need to make a test that generates a (partly) random address and verify
> if
> it's existing or not. If it's not test should generate a new address and
> go
> there until the generated page exists.
> This could easily be done with a simple while-loop but as far as I know
> Webtest does not have one. I'm not sure if this could somehow be made with
> just if-step (I guess if-step should be able to refer to itself somehow).
> While-loop could be made by groovy-step but I don't know how to put verify
> text etc. steps inside the groovy code.
>
> Can someone help me?
> --
> View this message in context:
> http://old.nabble.com/While--step-in-Webtest-tp29490451p29490451.html
> Sent from the WebTest mailing list archive at Nabble.com.
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
>
>
--
View this message in context:
http://old.nabble.com/While--step-in-Webtest-tp29490451p29736179.html
Sent from the WebTest mailing list archive at Nabble.com.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest