Re: Communication between thread groups...

2005-04-27 Thread sebb
I also think it's likely to be sparingly used. It's just that I'm not sure that it's obvious which components would need to be able to write the global data. This is why I think a naming convention would be the most convenient - simple to implement, and applicable to all test elements without fur

Re: Communication between thread groups...

2005-04-27 Thread Michael Stover
I'm thinking wanting data to be global is a rare thing - after all, we're simulating independent users most of the time, right? I would think wanting to write data to global is a highly specific thing that only a smallish number of components would do. If I'm wrong, maybe a naming convention or

Re: Communication between thread groups...

2005-04-27 Thread sebb
Mostly agreed. But how would components know whether or not to store data globally? One way would be a naming convention (*). Otherwise, it seems to me that every component that might want to write global data would need to be extended to allow its "global" flag to be set. (*) This could be impl

Re: Communication between thread groups...

2005-04-27 Thread Michael Stover
It'll have to be synchronized no matter what. Probably don't want to extend JMeterVariables for that reason. I would say, make writing to it a custom thing - ie, if a component wants data put to global level, it can write it there, or instruct JMeter context to copy it there. For reading, I"d sa

Re: Communication between thread groups...

2005-04-27 Thread sebb
OK. Do all variables get written to this? Might be expensive (access will have to be synchronized). If not, how are the variables chosen? Naming convention perhaps? Otherwise a new syntax might be needed. S. On 4/27/05, Michael Stover <[EMAIL PROTECTED]> wrote: > So why don't we just slap anothe

Re: Communication between thread groups...

2005-04-27 Thread Michael Stover
So why don't we just slap another JMeterVariables object in the JMeterContextService class that can act as a holder for global variables? Each context has a getVariables method that retrieves the variable holder for each thread, let's make a global one too. -Mike On Wed, 2005-04-27 at 14:18 +0

Re: Communication between thread groups...

2005-04-27 Thread sebb
Variables are local to a thread. Properties are global to JMeter; they can easily be read using the various property functions. However, at present the only way to set them is to use BeanShell, but it would not be difficult to enhance JMeter to add a function or some other test element to set a p

Communication between thread groups...

2005-04-27 Thread vincent . lortie
Hello, I recall a similar issue (relating to thread synchronisation) that was discussed recently but I can't for the life of me find the e-mails, so please forgive me if this is rehashing something that's already been addressed. Here is what I am trying to accomplish in JMeter: I want to have