jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: extract hidden form values and add them to a post request dynamically?
Date Fri, 05 Feb 2010 22:25:28 GMT
hi
you need to add a beanshell preprocessor which loops through the returned
values and use sampler.addArgument();
httprequest1
+RegexExtract
httprequest1
+BeanShell Pre Proc

regards
deepak

On Fri, Feb 5, 2010 at 1:17 PM, Andreas Niemeyer <
andreas.niemeyer@gutzmann.com> wrote:

> Hi,
>
> I want to send a http post sample with dynamic request parameters which
> comes from a previos request.
>
> To extract the values from the form I use a regex extractor and want to
> loop through the result list of key/value pairs.
>
> Is it possible to add these parameters to the request within a foreach
> loop?
>
> The sequence might be:
>
> - http request
>        - extract form values (hidden fields)
>        - loop in a foreach controller
>                - add each extracted value pair as request parameter (how?)
>
> - send POST request
>
>
> Maybe an alternative way exist? If there is a proposal to use a BeanShell
> Pre-Prozessor for such a case, could you be so kind and give me an example?
>
>
>
> Many thanks in advance,
> Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message