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]>

Reply via email to