You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2014/05/09 09:19:16 UTC

[Bug 56507] New: Multi/Nested-loops do not iterate as expected (related to 51367)

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

            Bug ID: 56507
           Summary: Multi/Nested-loops do not iterate as expected (related
                    to 51367)
           Product: JMeter
           Version: 2.11
          Hardware: PC
            Status: NEW
          Severity: major
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: soumya.s@imaginea.com

I have a scenario:
for(i=1;i<5;i++)
{
  Login (picked from csv, 4 different credentials)
  for(j=1;j<6;j++)
  {
    Search (picked from different csv, 5 different strings-aaa,bbb,ccc,ddd,eee)
  }
  Logout
}

I script it in Jmeter as follows:
Loop Controller(loops=4)/Thread Group(threads=4)
 {
  Login (picked from csv, 4 different credentials-abc,def,ghi,jkl)
  Loop Controller(loops=5)
  {
    Search (picked from different csv, 5 different strings-aaa,bbb,ccc,ddd,eee)
   }
  Logout
}

Result:
For the inner loop(j), it does not pick up 'eee' but instead it picks up 'aaa'
again
It executes as:
abc{aaa,bbb,ccc,ddd,aaa}
def{aaa,bbb,ccc,ddd,aaa}
ghi{aaa,bbb,ccc,ddd,aaa}
jkl{aaa,bbb,ccc,ddd,aaa}

This scenario works correct if I give i=5 loops but does not if I give i=4
loops

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56507] Multi/Nested-loops do not iterate as expected (related to 51367)

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

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om

--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Could you attach your test plan and show where CSV Data Set is put and its
options.
A simple plan using Debug Sampler would be very useful.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56507] Multi/Nested-loops do not iterate as expected (related to 51367)

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

Soumya <so...@imaginea.com> changed:

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

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56507] Multi/Nested-loops do not iterate as expected (related to 51367)

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

--- Comment #3 from Soumya <so...@imaginea.com> ---
Created attachment 31661
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31661&action=edit
Test plan file

Debug Sampler:
JMeterVariables: Id=63973 JMeterThread.last_sample_ok=true
JMeterThread.pack=org.apache.jmeter.threads.SamplePackage@7c3a6608 Name=apple
Password=****** START.HMS=110711 START.MS=1401082631505 START.YMD=20140526
TESTSTART.MS=1401095802821 Token=Ttam5SfE5dP1YoYtzIqHDZBoA2SERRunuif5uArtg/A=
Token_g=1 Token_g0=input name="authenticity_token" type="hidden"
value="Ttam5SfE5dP1YoYtzIqHDZBoA2SERRunuif5uArtg/A="
Token_g1=Ttam5SfE5dP1YoYtzIqHDZBoA2SERRunuif5uArtg/A=
Username=********@rpxcorp.com

For this execution I used i=1 and j=15
Results shows i=1 and j=1(for 15 times)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56507] Multi/Nested-loops do not iterate as expected (related to 51367)

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

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #4 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Hello,
Sorry but Test plan has nothing to do with exposed issue.

Please ask on user mailing list before opening a bug, and if opening a bug
provide a simple and usable test plan with associated CSV, expected results and
what you get.
Thank ou

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 56507] Multi/Nested-loops do not iterate as expected (related to 51367)

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

Soumya <so...@imaginea.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Soumya <so...@imaginea.com> ---
Correction
It executes as:
abc{aaa,bbb,ccc,ddd,aaa}
def{aaa,bbb,ccc,ddd,bbb}
ghi{aaa,bbb,ccc,ddd,ccc}
jkl{aaa,bbb,ccc,ddd,ddd}

-- 
You are receiving this mail because:
You are the assignee for the bug.