There is a backport of the java.util.concurrent stuff that works for Java 1.4, so the functionality could even be added to JMeter, e.g. as a Pre-Processor.
S. On 12/03/07, chris <[EMAIL PROTECTED]> wrote:
hi! want i wanted, was the possibility to run a sampler (e.g. of threadgroup A) after a certain sampler (of threadgroup B) finished. this is important if for example thread A creates some data in our webapplication and thread B uses this data. i did NOT want to activate "Test Plan: select run each thread group separately", as we have about 10 thread groups that are running parallely (to make test cycle times shorter). i now found a way to solve the problem with java (1.5) Semamphores. by a beanshell preprocessor (or sampler) i use the aquire-method to enter the "critical region", and then release the semaphore with another beanshell (post)processor or sampler. it works perfectly. for managing the semaphores, i use a static HashMap that I implemented in JMeterUtils.java. cheers, chris "Alexander J Turner" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Chris, > > Thanks to that. Your feedback does not get us much further on thought > does it? Do you still have a problem - or is everything OK now? > > Best wishes > > AJ > > On Thu, 2007-03-08 at 17:00 +0100, chris wrote: > >> > Normally, ThreadGroup2 will not start until ThreadGroup1 has finished. >> > As sampler2 is a child of ThreadGroup2 and Sampler1 is a child of >> > ThreadGroup1, this means that all of the Sampler1 actions will have >> > finished before any of the Sampler2 actions start. That would appear >> > to >> > be what you are wanting - so there is some confusion. >> > >> > Can you try and explain what you want a little more clearly? >> >> all thread groups start at the same time. thats the idea of thread >> groups. >> you can avoid starting all thread groups at the same time, if you enable >> "select run each thread group separately". >> >> cheers, >> chris >> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > > ========================================== > Hard Core How-To's, Coding Techniques ETC. > --- http://nerds-central.blogspot.com! --- > Nerds Central welcomes nerds :-) > ========================================== > --------------------------------------------------------------------- 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]