jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <>
Subject Re: Large dynamic form handling - post value default from previous form
Date Sat, 19 Jan 2008 03:50:22 GMT
The Regex Extractor can in theory extract all the names and values
from the form, into variables of the form

VAR_n_g1 and VAR_n_g2

where n=1,2,3 and g1 and g2 are the contents of the 1st and 2nd capture groups.

You can then use these as POST parameters.

If you are able to write Java, you may find it easier to write a
BeanShell Pre-Processor (which has access to the current sampler and
previous sample) and use that to update the sample directly.

You may be able to use the JDom or HtmlParser libraries to help with
parsing the HTML.

It's not going to be trivial.

On 15/01/2008, Craig Berry <> wrote:
> The pages of my web application often contain dynamically-generated
> forms which can be large and complex, with the form field names
> themselves being state-dependent.  It would vastly simplify my life if I
> could craft a POST that used the existing values of everything on the
> previously obtained page form, with just one or two values explicitly
> overridden.  Is such a thing possible?
> --
> Craig Berry
> Principal Architect, PortBlue Corporation
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message