You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Steve Kapinos <St...@tandberg.com> on 2008/05/07 20:40:25 UTC

RE: Understanding How to Twiddle Values in JMeter

>>  I'd like to see a element that simply has a blank body where you can

>> enter blocks of code that jmeter will process line by line.  So if I

>> need to perform several lines of variable manipulation or
evaluations..
>>  Its readable, easy to enter, and makes sense to a new comer.


>Still not entirely sure I follow what you are requesting.

>Have you had a look at the various BeanShell elements?
>These allow arbitrary code to be entered.

Here's a good example... I'd like to use the __setProperty function to
write a value to a property so it can be reused by another
threadgroup... But I can't find a reasonable place to just execute the
function on it's own.  

Basically anytime I just want to manipulate anything that is not a
sample or the previous response... its always confusing to figure out
where to put it.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Understanding How to Twiddle Values in JMeter

Posted by Steve Kapinos <St...@tandberg.com>.
 
>Just put it in a test element that will be executed after the values
have been defined.

>So it could be in a sampler name, or a comment or just about anywhere.

Ok, I see what you mean.. I'll just do a test that does nothing and use
the comment field :)

But I hope you understand my explanation now how its confusing to new
users on where this stuff should be put in the test plan.

It seems the original intent of jmeter was to basically work on
everything 'in line' manipulating things in series with its usage.  When
you start creating variables and wanting to manipulate them discretely
for readability and upkeep, it gets confusing where it should be done.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Understanding How to Twiddle Values in JMeter

Posted by sebb <se...@gmail.com>.
2008/5/7 Steve Kapinos <St...@tandberg.com>:
> >>  I'd like to see a element that simply has a blank body where you can
>
>  >> enter blocks of code that jmeter will process line by line.  So if I
>
>  >> need to perform several lines of variable manipulation or
>  evaluations..
>  >>  Its readable, easy to enter, and makes sense to a new comer.
>
>
>  >Still not entirely sure I follow what you are requesting.
>
>  >Have you had a look at the various BeanShell elements?
>  >These allow arbitrary code to be entered.
>
>  Here's a good example... I'd like to use the __setProperty function to
>  write a value to a property so it can be reused by another
>  threadgroup... But I can't find a reasonable place to just execute the
>  function on it's own.
>
>  Basically anytime I just want to manipulate anything that is not a
>  sample or the previous response... its always confusing to figure out
>  where to put it.
>

Just put it in a test element that will be executed after the values
have been defined.

So it could be in a sampler name, or a comment or just about anywhere.

The only test element where it might not work as required is a Config
element, because these are processed at the start.

Try it and see; you can always use the __logn() function to experiment.

>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org