4 messages in com.canoo.lists.webtestRE: [Webtest] Iterating pages?
FromSent OnAttachments
Mike Lecza30 Dec 2002 05:33 
Dierk Koenig30 Dec 2002 05:50 
Mike Lecza30 Dec 2002 05:59 
Dierk Koenig30 Dec 2002 06:19 
Subject:RE: [Webtest] Iterating pages?
From:Dierk Koenig (dier@canoo.com)
Date:12/30/2002 06:19:10 AM
List:com.canoo.lists.webtest

Yes, as HttpUnit is just a package for sending requests and retrieving responses from a web application you can use its Java API just like WebTest does internally.

You can loop over the "Data Entry" pages until you find e.g. a certain element in the page.

In contrast to CanooWebTest you have to code it in Java and you have to care for the reporting features on your own. But you are much more flexible in what you do.

cheers Mittie

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Mike Lecza Sent: Montag, 30. Dezember 2002 14:59 To: webt@gate.canoo.com Subject: RE: [Webtest] Iterating pages?

Thanx for the reply. Are you saying that there is something in HttpUnit that would help?

Regards,

Mike

-----Original Message----- From: webt@gate.canoo.com [mailto:webt@gate.canoo.com] On Behalf Of Dierk Koenig Sent: Monday, December 30, 2002 8:51 AM To: webt@gate.canoo.com Subject: RE: [Webtest] Iterating pages?

Hi Mike,

Currently, there is no easy way. (but would make for good contribution:-)

One possibility is to set up your webapp in a way that you can foresee the number of steps.

We sometimes use a special "administration servlet" to this end.

If that is not possible, you be left with using HttpUnit directly (not too bad either).

cheers and a Happy New Year

Mittie

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com]On Behalf Of Mike Lecza Sent: Montag, 30. Dezember 2002 14:34 To: webt@gate.canoo.com Subject: [Webtest] Iterating pages?

With Canoo - Is there a way to iterate a bunch of steps until a final page is hit.

For example I have a web app that serves up a bunch of questions (1 per page). When the user has answered so many question correctly the application serves up a “Finished” page. So basically I want Canoo to keep submitting answers until the Finished page is reached.

I see the repeat option but that is only good if I want to repeat for a specific number of times – I want to repeat until a certain page is hit.

Regards