You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by eric craven <cr...@gmx.net> on 2006/07/03 12:36:50 UTC

bean shell pre/post-processor

i would like to read in a config file before any thread
 group is run, set a few variables that are valid for all
 thread groups, and then, after all thread groups have
 finished, write back some of these variables to a file..
 i have to use beanshell for this :)

i ran into the following problems:
* vars.put does not set a variable for anything *outside* 
  the current thread group
* i cannot have any beanshell scripts outside a thread group
* is there any way i can access the current loop counter for 
  the current thread
group?
* is there a way to run a beanshell script at a certain point 
  in the tree, for side effects? not a sampler, not a function,
  just run a script?

thanks for any help!

eric


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


Re: bean shell pre/post-processor

Posted by sebb <se...@gmail.com>.
Try using properties for the config data instead of variables.

On 03/07/06, eric craven <cr...@gmx.net> wrote:
> i would like to read in a config file before any thread
>  group is run, set a few variables that are valid for all
>  thread groups, and then, after all thread groups have
>  finished, write back some of these variables to a file..
>  i have to use beanshell for this :)
>
> i ran into the following problems:
> * vars.put does not set a variable for anything *outside*
>   the current thread group
> * i cannot have any beanshell scripts outside a thread group
> * is there any way i can access the current loop counter for
>   the current thread
> group?
> * is there a way to run a beanshell script at a certain point
>   in the tree, for side effects? not a sampler, not a function,
>   just run a script?
>
> thanks for any help!
>
> eric
>
>
> ---------------------------------------------------------------------
> 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