Thanks Deepak, that solved my issue. Weird no?
C.
On 12/01/2010 17:43, Deepak Shetty wrote:
Hi
Im not sure exactly why this happens , but the way around it is to wrap each
element you wnat to reuse with a simple controller
Module Cache ThreadGroup
+Simple Controller1 --> Add this
++IF Controller --> Your conditions
+++sample
+Simple Controller2 --> Add this
++IF Controller --> Your conditions
+++sample
Thread Group
Module Controller1 --> Change this to Test Plan --> Module Cache --> Simple
Controller1
Module Controller2 --> Change this to Test Plan --> Module Cache --> Simple
Controller2
I suppose it is because the module controller includes the children of the
element you select (and does not begin with the element), never verified it
regards
deepak
On Tue, Jan 12, 2010 at 2:37 AM, Craig Emery<[email protected]> wrote:
Hi Tibo,
I've got two thread groups, one that does stuff and another holding If
Controllers that my Module Controller will "call".
I've defined a variable in my test plan, called it "a" and given it a
value of 1.
The If Controllers in the disabled thread group simply test a. One test
Will "Debug Sample" "a> 0 (mod)" if a is indeed greater than 0. I've
another one that shouldn't Debug Sample anything as the condition is a> 1.
I use a Module Controller to "call" the two If Controllers.
Then I explicitly do the same If conditions with Debug Sample's that are
missing the "(mod)" from their output.
I'm expecting my View Results Tree to contain (with 2 threads):
Begin
a> 0 (mod)
a> 0
Begin
a> 0 (mod)
a> 0
But I actually get
Begin
a> 0 (mod)
a> 1 (mod)
a> 0
Begin
a> 0 (mod)
a> 1 (mod)
a> 0
Here's the test (sorry of it's bad form to post scripts on this list, (I
hope) I've kept it plain text)
Yours,
Craig
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]