It was easier than I expected - I managed to make Thread Groups a regular plugin with ability to add my own and fully compatible with existing test plans.
It is: 1. Extract abstract superclass AbstractThreadGroup and AbstractThreadGroupGui. 2. Modify JMeterEngine and ThreadGroup to delegate thread scheduling to ThreadGroup. 3. Add menu group "Threads" and place all thread groups under it. Just like Listeners do via MenuFactory. Then I'm able to add my custom thread groups and JMeter works perfectly. The only visible problem I see is tree icon for custom thread groups - it is default. What'd ya say, sebb? What should I do next if I want this changes to be committed? С уважением, Андрей Похилько -----Original Message----- From: Andrey Pohilko [mailto:a...@fininfor.ru] Sent: Tuesday, February 09, 2010 12:34 PM To: 'JMeter Developers List' Subject: RE: Custom Thread Group Hello! I mean that I can write custom Listener or Sampler, but can't write custom Thread Group. Or I can but just don't know how? С уважением, Андрей Похилько -----Original Message----- From: sebb [mailto:seb...@gmail.com] Sent: Tuesday, February 09, 2010 3:14 AM To: JMeter Developers List Subject: Re: Custom Thread Group On 03/02/2010, Andrey Pohilko <a...@fininfor.ru> wrote: > Hello! > > > > I'm maintaner of jmeter-plugins project at Google Code and love writing > JMeter plugins very much along with using this plugins at my work for > complex load tests. > > I'd like to write my own Thread Group plugin with custom threads > starting/stopping logic (step function like LoadRunner), but there's 2 > problems: > > 1. Thread Groups does cannot be custom, there's fixed code for thread > groups > > 2. Start/end time logic placed in JMeterStandardEngine, not ThreadGroup > > > > I can modify JMeterStandardEngine and ThreadGroup code to use new > "Alternative Scheduling" option and send a patch to developers to include in > Jmeter source code, but this is not so elegant way as regular jmeter > plugins. Actually, for now it's the only way for me and I almost implemented > it. But it's ugly way to have an improvement which I cannot share. > > > > I think the best way is make Thread Group regular plugin and delegate thread > scheduling calculation logic to it, then anyone will be able to make any > thread scheduling logic without impact on jmeter source code. > Not sure I understand how you propose doing this. Can you explain a bit more what you mean? Note that any changes would need to be compatible with existing test plans. > > What would you say? > > > > Best wishes, > > > Andrey Pohilko > > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org