[Webtest] conditional looping

Dierk Konig webtest@lists.canoo.com
Wed, 19 Jun 2002 12:20:27 +0200


Testing the game's algorithm, including the termination
of the arbitrary looping is a typical candidate for a unit test. 

The WebTest should ensure that passing the parameters through
the Web interface works correctly as well as parameter updates
in the session and the resulting data display.

This should be possible to do with a few simple Tests.

If, after all, you still prefer testing the algorithm through the
user interface, I would prefer using HttpUnit directly over 
extending WebTest for this purpose.

cheers
Mittie


> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Michael Finney
> Sent: Dienstag, 18. Juni 2002 17:28
> To: webtest@lists.canoo.com
> Subject: RE: [Webtest] conditional looping
> 
> 
> 
> Well, simply the case is that N number of pages have
> to be dealt with and N is a random number.  Thus, the
> number of iterations is arbitrary.
> 
> Think of the situation with a randomn number of pages
> as a game or test.   see http://www.jatitan.lycos.com/
> if you want to know what game.
> 
> Michael
> 
> 
> --- Dierk_Konig <Dierk.Koenig@canoo.com> wrote:
> > > -----Original Message-----
> > > From: webtest-admin@lists.canoo.com
> > > [mailto:webtest-admin@lists.canoo.com]On Behalf Of
> > Michael Finney
> > > Sent: Montag, 17. Juni 2002 17:38
> > > To: webtest@lists.canoo.com
> > > Subject: [Webtest] conditional looping
> > ..
> > > (now the harder part)
> > > 6) click a button
> > > 7) click "go to decision form" button
> > > 8) click "submit decision"
> > > 9) if result page title is Simulations, jump back
> > to
> > > step 7
> > > 10) (if we reach here, we are at the 
> > ..
> > 
> > What are you going to test here?
> > 
> > Dynamic properties of the decision form?
> > That simulation do not loop endlessly?
> > How many "goto step 7" do you expect?
> > Is the number of iterations arbitrary or fixed?
> > 
> > My advise is to try everything you can to avoid
> > conditional logic in tests.
> > (as opposed to putting a lot of effort in making
> > conditional logic possible)
> > 
> > cheers
> > Mittie
> > _______________________________________________
> > WebTest mailing list
> > WebTest@lists.canoo.com
> > http://lists.canoo.com/mailman/listinfo/webtest
> 
> 
> =====
> Michael Finney
> Sun Certified Programmer for the Java 2 Platform
> Sun Certified Developer for the Java 2 Platform
> Cofounder of PPJDG
> Cofounder of cosAgile - Colorado Springs XP Users Group
> If replying to this email address fails, try finney@ACM.org
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>