On 02/11/05, Ryszard Łach <[EMAIL PROTECTED]> wrote:
> Dnia środa, 2 listopada 2005 14:09, sebb napisał:
> > Sounds like a useful enhancement - but I'm not clear how would you
> > tell JMeter how to find the text.
> >
> > Do you have any suggestions for the changes to the UI?
> >
>
> Maybe another configuration element or part of http proxy server, similar to
> User Defined Variables with columns:
>
> "pattern"       ->      "referencing variable"
>
> e.g.
>
> id_user=(\d+)   ->      id
>
> resulting in replacement
>
> id_user=${id}
>
> I was trying to use UDV for that entering regexp as value. Maybe a checkbox
> telling "use value as pattern" would be enough? When checked it could cause
> replacing match with variable's name; this of course would require defining
> the variable once more with this checkbox unchecked (to replace the variable
> with value during test plan execution).

I don't see how this can be done with the existing variable definition
test elements.

How about adding a "Replacement Pattern" section to the Proxy server?
For example:

Match RE                         Replacement
id_user=\d+                     id_user=${id}
pair=\(\d+,\d+)                 pair=(${a},${b})

The Match string would be assumed to be a Regular Expression.

Would this meet your needs?

S.

Reply via email to