Variables are not shared across threads. JMeter simulates multiple independent users, so there hasn't been any need to shared data amongst the threads during the test run.
-Mike On Tue, 2004-09-21 at 09:27, [EMAIL PROTECTED] wrote: > I want to save variables that were initialized in one thread, so they > will be seen in other thread. > There is an easy way to save variables in the thread's context: > JMeterContext context = getThreadContext(); > JMeterVariables vars = context.getVariables(); > vars.put(.... > > But trying to save variables so they will be seen in all the threads is > much harder, I looked at: PreCompiler.addNode(Object,HashTree) > and in my code tried naively to write: > JMeterContextService.getContext().getVariables().put("code", "value"); > but this key was unvisible in other threads. I've noticed that there is > some action doing with an instance of 'ValueReplacer' in the 'addNode' > func, but still didn't figure to find out what to do. > Tips will be most welcom > > Thanks. -- Michael Stover <[EMAIL PROTECTED]> Apache Software Foundation --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]