You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jakarta.apache.org by bu...@apache.org on 2011/06/13 22:39:48 UTC

DO NOT REPLY [Bug 51367] New: Nested loops do not iterate properly

https://issues.apache.org/bugzilla/show_bug.cgi?id=51367

             Bug #: 51367
           Summary: Nested loops do not iterate properly
           Product: JMeter
           Version: 2.4
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
        AssignedTo: notifications@jakarta.apache.org
        ReportedBy: jw2online@verizon.net
    Classification: Unclassified


I am working on getting a test setup that has a loop in a thread group that
repeats the test.  I have tested with the following combination and found that
what I will label as the "Inner Loop" is executed only once despite the test
plan configuration.

Thread Group (repeat 5x)
+ Action1
+ Inner Loop (repeat 5x)
+ Action2


Threat Group
+ Loop (repeat 5x)
++ Action1
++ Inner Loop (repeat 5x)
++ Action2

The result in both cases is the same:
. Action1
. Inner Loop (5x)
. Action2
. Action1 (4x)
. Action2 (4x)

My expectation is that it would work as follows:
. Action1
. Inner Loop (5x)
. Action2
. Action1
. Inner Loop (5x)
. Action2
. Action1
. Inner Loop (5x)
. Action2
. Action1
. Inner Loop (5x)
. Action2
. Action1
. Inner Loop (5x)
. Action2

This is also how is this is documented.  I hope this is a "user error" and that
I can be set right.  However, if this is a bug, I hope a fix can be quickly
issued as this makes building tests slightly more cumbersome.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 51367] Nested loops do not iterate properly

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51367

JW <jw...@verizon.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #4 from JW <jw...@verizon.net> 2011-06-14 16:19:48 UTC ---
My apologies.  This appears to be a case of EBCAK/IO.  When I built my test I
took the recorded parts, made proper variables, and added a loop.  In the
course of this the file was somehow corrupted and yet ran.  Now when I run the
test I see more of what I am expecting to see.

I have marked this bug appropriately.

If I can replicate issues with moving nodes from the recording workbench to a
test plan, I will open a separate issue.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 51367] Nested loops do not iterate properly

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51367

--- Comment #2 from JW <jw...@verizon.net> 2011-06-14 13:15:01 UTC ---
I will work on getting a simple test setup.

The Loop Controller used is the basic "Loop Controller" which either loops
forever or for a certain count.

The "+" signs below are meant to indicate the levels of the layout.  In the
first case everything is an immediate child of the Thread Group.  In the second
case there is one immediate child of the Thread Group and the "Loop" (which is
a Loop Controller) has three children.

But, as I said I will work on setting up a simple test and getting it posted. 
I offer that explanation in case it helps while I juggle work and getting a
sample test ready.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 51367] Nested loops do not iterate properly

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51367

--- Comment #3 from JW <jw...@verizon.net> 2011-06-14 13:44:45 UTC ---
I made a sample test based on your suggestion and it worked as expected.  I am
going to rebuild my other tests from scratch and see if the issue persists.  I
built them by taking the sampled responses and moving/adjusting them to be part
of the test case.  Perhaps something odd happened there.

I will followup with my results.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 51367] Nested loops do not iterate properly

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=51367

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Sebb <se...@apache.org> 2011-06-13 21:09:09 UTC ---
The test layout is not clear from the description, nor ist it clear what loop
controller was used.

Please can you provide a simple test case showing the layout?

You can use the Java Test sampler to avoid the need to connect to an external
host.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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