Use a startup (init) file and define the variable there.

Or you can use vars.putObject() - see the JavaDoc for the JMeterVariables class.

On 20/09/2007, Nikolaos Giannopoulos <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Working through most of the issues I had in developing a script that
> would ensure that I hit all 9 web instances behind a LB by processing a
> JSP that had the server and instance information.
>
> Last problem:
>
> - How do I create a global Hashtable variable
>   i.e. I can only add strings to the JMeter vars map
>   i.e. I want to create this global Hashtable once and have each thread
> simply add to it
>
> - Once I have 9 entries in the global Hashtable the threads will each
> start to stop and we are done
>
> Looks like a simple problem but vars doesn't work and I checked the
> JMeterContext class and it doesn't seem like you can add any object
> there either.  There must be a way to do this....
>
> Any ideas?
>
> --Nikolaos
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to