Rather simple in the practical sense.. I need each thread to use a different number for each pass that will not overlap with the other threads executing.
One thread could use '1' for its first pass second thread could use '2' for its first pass On the second pass, they need to use a new number, as to prevent possible overlap with another thread that is still running. So I have a UDV at the start of a thread defining a count, vcsCount. The thread uses that variable in the rest of the thread group as the unique variable... with the hope that each time a pass through the thread group is executed, the count is incremented. Thinking out loud now.. I guess that should be a User Parameter that should have the checkbox marked instead of a UDV shouldn't I? But I don't understand why the current implementation seems to increment everytime vcsCount is referenced. -----Original Message----- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tue 4/8/2008 6:35 PM To: JMeter Users List Cc: Subject: Re: Help with __counter function What do you mean by "unique per thread"? If there are two threads, unique per thread could mean that they each see the same unique set of numbers, or that each thread sees numbers that are different from the numbers seen in all other threads. On 08/04/2008, Steve Kapinos <[EMAIL PROTECTED]> wrote: > I'm trying to create an integeter that is going to be unique per thread. > > I have a UDV element defining > > vcsGlobalCount ${__counter(FALSE,vcsCount)} > > However, each time vcsCount is referenced, that seems to increment the > counter. I would have thought the counter would only increment when the > UDV element was ran.. Each time a thread starts. > > What is the proper way of handling a counter like this that should be > unique per thread in this fashion? > > Thx > > -Steve > > > --------------------------------------------------------------------- > 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]