Re: [Loadsim-users] conditional logic
Brought to you by:
vsheffer
From: Vincent S. <vsh...@op...> - 2003-06-27 19:36:45
|
The only way to do it would be to implement the IContentHandler interface. The object passed into the method you must implement contains the last page in the form of an HTTPUnit WebResponse object (look at the doc for HTTPUnit to see what methods are available, things like getting all of the links is one such method). So, you can use that to extract the information that you desire from the page. In addition to the WebResponse object is a Link object which you can use to set the next link. It should be noted that this will slow down the simulation considerable because now every page will have to be parsed. If you do this I would appreciate any feedback you have on it. -vince On Friday, June 27, 2003, at 09:31 AM, luke cassady-dorion wrote: > Is it possible to use some form of conditional logic with loadsim? I am > working with a survey application where the user will take only 5 > questions randomly chosen from a pool of around 100. each question > needs > slightly different parameters, so i need to do something where i parse > out the question id from the url and then decide which data to post. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting > Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly > Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > Loadsim-users mailing list > Loa...@li... > https://lists.sourceforge.net/lists/listinfo/loadsim-users > |