sebb wrote:
Use a startup (init) file and define the variable there.
Or you can use vars.putObject() - see the JavaDoc for the JMeterVariables class.
Ummm.... got it to work. Only caveat is that I had to use 1 thread with
anCounter i.e. threads that ran in parallel would have their own local
vars variables.
So I take it there is no way to have true global variables i.e.
variables whose values persist across threads.
Thanks Again for your help I got everything working!
--Nikolaos
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]
--
Nikolaos Giannopoulos
Director, BrightMinds Software Inc.
e. [EMAIL PROTECTED]
w. www.brightminds.org
t. 1.613.822.1700
f. 1.613.822.1915
c. 1.613.797.0036
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]