You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Jan Van Lysebeth <ja...@gmail.com> on 2005/10/24 22:06:10 UTC

nested thread groups

 Hi all,

I want to setup a "book creation" testplan that goes like this:

Publisher logs in and creates one book and assigns a chief editor.
Chief editor logs in and creates 5 chapters and assigns an editor for each
chapter.
5 concurrent working editors log in and finish each 1 chapter
Chief editor logs in and validates all 5 chapters.
Publisher logs in and validates the book.

I want to use this testplan to simulate load.
To do this I want to configure the number of books that are created
concurrently.
In addition I want to set a total number of books to create, this will
determine the number of times to loops over the testplan.

What I tried was this:

ThreadGroup 1
|_ HTTP Requests for the Publisher creating book (1)
|_ HTTP Requests for the Chief Editor creating chapters (2)
|_ ThreadGroup2
|_ HTTP Requests for the Editors to finish a chapter (3)
|_ HTTP Requests for the Chief Editor validating chapters (4)
|_ HTTP Requests for the Publisher validating the book (5)

With this setup I hoped to use the number of threads of ThreadGroup1 for
configuring the number of books written simultaneuos. The loop counter of
ThreadGroup1 could be used to configure how long the test would run.
ThreadGroup2 would define the number of editors working on one book. So for
this thread group I set the number of threads to 5 and the loop counter to
1. But this is how the testplan gets executed:

TG1.1, TG1.2, TG1.3, TG1.4, TG1.5, TG2.3, TG2.3, TG2.3, TG2.3, TG2.3

Where
TG1 = thread from ThreadGroup 1
TG2 = thread from ThreadGroup 2
TG1.1 = thread from ThreadGroup 1 and HTTP Requests for the Publisher
creating book
TG1.2 = thread from ThreadGroup 1 and HTTP Requests for the Chief Editor
creating chapters
TG1.3 = thread from ThreadGroup 1 and HTTP Requests for the Editors to
finish a chapter
...

After reading the manual and wiki I released thread groups are either run
sequential or parallel, but no nesting is possible.
But this leaves me in doubt if JMeter can be used to create my testplan?

I hope I made myself clear.

Thanks for any help!

Jan

Re: nested thread groups

Posted by Jan Van Lysebeth <ja...@gmail.com>.
In my first post, the layout of my testplan was screwed up.
This version will work better when displayed as HTML:

ThreadGroup 1
|____ HTTP Requests for the Publisher creating book (1)
|____ HTTP Requests for the Chief Editor creating chapters (2)
|____ ThreadGroup2
_______|____ HTTP Requests for the Editors to finish a chapter (3)
|____ HTTP Requests for the Chief Editor validating chapters (4)
|____ HTTP Requests for the Publisher validating the book (5)



On 10/24/05, Jan Van Lysebeth <ja...@gmail.com> wrote:
>
> Hi all,
>
>  I want to setup a "book creation" testplan that goes like this:
>
> Publisher logs in and creates one book and assigns a chief editor.
> Chief editor logs in and creates 5 chapters and assigns an editor for each
> chapter.
> 5 concurrent working editors log in and finish each 1 chapter
> Chief editor logs in and validates all 5 chapters.
> Publisher logs in and validates the book.
>
> I want to use this testplan to simulate load.
> To do this I want to configure the number of books that are created
> concurrently.
> In addition I want to set a total number of books to create, this will
> determine the number of times to loops over the testplan.
>
> What I tried was this:
>
> ThreadGroup 1
>        |_ HTTP Requests for the Publisher creating book (1)
>        |_ HTTP Requests for the Chief Editor creating chapters (2)
>        |_ ThreadGroup2
>                |_ HTTP Requests for the Editors to finish a chapter (3)
>        |_ HTTP Requests for the Chief Editor validating chapters (4)
>        |_ HTTP Requests for the Publisher validating the book (5)
>
> With this setup I hoped to use the number of threads of ThreadGroup1 for
> configuring the number of books written simultaneuos. The loop counter of
> ThreadGroup1 could be used to configure how long the test would run.
> ThreadGroup2 would define the number of editors working on one book. So for
> this thread group I set the number of threads  to 5 and the loop counter to
> 1. But this is how the testplan gets executed:
>
> TG1.1, TG1.2, TG1.3, TG1.4, TG1.5, TG2.3, TG2.3, TG2.3, TG2.3, TG2.3
>
> Where
> TG1 = thread from ThreadGroup 1
> TG2 = thread from ThreadGroup 2
> TG1.1 = thread from ThreadGroup 1 and HTTP Requests for the Publisher
> creating book
> TG1.2 = thread from ThreadGroup 1 and HTTP Requests for the Chief Editor
> creating chapters
> TG1.3 = thread from ThreadGroup 1 and HTTP Requests for the Editors to
> finish a chapter
> ...
>
> After reading the manual and wiki I released thread groups are either run
> sequential or parallel, but no nesting is possible.
> But this leaves me in doubt if JMeter can be used to create my testplan?
>
> I hope I made myself clear.
>  Thanks for any help!
>
> Jan
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org