jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <>
Subject Re: http request property replacement
Date Sat, 13 Jun 2009 18:24:21 GMT
Im not sure if i understand your requirement correctly , but I assume this
is what you want to do?

Thread Group
         Regex Extractor to var1
   HttpRequest2 , in the request parameters use ${var1} ?
Does this work for you?

If not
Instead of Regex Extractor , you can use XPath Extractor or Beanshell Post
Processor to extract values as well , depending on your requirement. To set
the values you can directly use the ${var}
If you need to change this value in some way you can use a Bean Shell Pre
Processor (or any of the __javaScript/Beanshell functions)

So this would work as
Thread Group
         Regex Extractor to var1(or Bean Shell post processor or XPath
         BeanShell Pre Processor
            String var1 =vars.get("var1");
            //do stuff

It would be useful if you could tell us what exactly you want to do with an

On Sat, Jun 13, 2009 at 1:12 AM, Andre Arnold <> wrote:

> Hi,
> I struggled to find a way to replace some http request properties which
> are dynamicly build. The best way I can imagine is some regex to find
> and replace it with the variable name I will use in the tests.  Because
> of the dynamic nature of the value I can't use the testplan variable
> replacement (the value differs from page to page). I've read around and
> as I understand it, there may be a possibility to use some other
> function than the regex function at testplan level.
> So can I use the Beanshell function in a testplanvariable to be
> processed on the recording request and replace some request parameter
> values?
> sry for my english
> André
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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