Re: multiple requests with multiple threads

"[email protected]" <[email protected]>
Newsgroups gmane.comp.java.grinder.user
Message-ID <[email protected]>
The code is made for running test scripts in parallel. You did not create a
"scripts" list. So, this code will throw an error. You need to make a list
of the scripts in order to proceed. Assuming you already did that,

Each thread as you might already know, calls the __init__ function exactly
once. The thread number ranges from 0-n as is the number of threads
mentioned in the grinder properties file. Your code does this :

If the thread id is between 0-4, it runs scripts[1]
Then, we are assigning an instance of the TestRunner of scripts[1] and
storing it in an instance variable "testRunner".
..
..
..
..
In the __call__ method, we are simply running TestRunner class of the script
selected in the __init__ method.
So, thread numbers from 0-4 execute the TestRunner of scripts[1] and 4-7 of
scripts[0] and so on.

the source just in case you haven't checked it out.
http://grinder.sourceforge.net/g3/script-gallery.html#sequence.py



--
View this message in context: http://grinder.996249.n3.nabble.com/multiple-requests-with-multiple-threads-tp8566p8677.html
Sent from the Grinder - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.