I agree in principle. Rather than attach an arbitrary number, I'd rather attach the thread name. That way it is unique to the thread, even across threadgroups, and your modifier can track unique user's using these values. Would that satisfy your requirement?
-Mike -----Original Message----- From: Skogmar, Klas [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 4:31 AM To: 'JMeter Developers List' Subject: RE: IRC Considering the time difference between us, I've never been able to talk to you on IRC... I've got a suggestion on an enhancement: It's a good id� to give each Thread a number, since in many cases you want to log in (or create) many people with different userids (and passwords). We needed that for our wap-games so I added some code to the JMeterThread class: static int nbrThreads = 0; // used for assigning thread numbers private int thread_nbr = nbrThreads++; // used for identifying the Thread and in the run()-method: SampleResult result = sampler.sample(entry); result.putValue("threadNbr", new Integer(thread_nbr)); // I added this line checkAssertions(entry, result); Then I could fetch the threadNbr in my own class (a modified AnchorModifier), and replace the value of parameters with the thread number (I used [nbr] as identifier for the number). /Klas -----Original Message----- From: Stover, Michael [mailto:[EMAIL PROTECTED]] Sent: den 25 april 2002 16:50 To: '[EMAIL PROTECTED]' Subject: IRC like yesterday, I'll hang out on IRC again today, in case anyone wants to talk about JMeter. I'm falling more and more into the Avalon framework (I say falling because, once I start using the stuff, I seem to be getting dragged into using more and more - Berin assures me this is good ;-) My latest thing is turning SampleRequest objects into Configuration objects, which means they have a DOM-like structure and are easily serialized to file as XML. But, everything that uses SampleResults has to change. irc.openprojects.net #jmeter -Mike -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
