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 2020/02/19 09:26:54 UTC

[Bug 64159] New: Variable values are changing after reg exp extraction when accessing a second time

https://bz.apache.org/bugzilla/show_bug.cgi?id=64159

            Bug ID: 64159
           Summary: Variable values are changing after reg exp extraction
                    when accessing a second time
           Product: JMeter
           Version: 5.2.1
          Hardware: PC
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: mpaetzold@informatica.com
  Target Milestone: JMETER_6.0.0

Created attachment 37026
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37026&action=edit
test plan and jmeter log file

Have a reg exp extractor a multiple groups as result.
Try to access each group, e.g. in a for loop
When number of groups < 10, everything works as expected
When number of groups > 10, result groups are somewhat shuffled, result_g1 has
value of result_g10.

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

[Bug 64159] Variable values are changing after reg exp extraction when accessing a second time

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

--- Comment #2 from Matthias <mp...@informatica.com> ---
It is not the alphabetical order.
Look at the last sample
When calling debug sampler the first time
message_1=123
message_10=10456
When calling debug sampler the second time
message_1=10456
message_10=7123

Same Variable, different values.
There is no other sampler or processor between the 2 Debug smaplers

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

[Bug 64159] Variable values are changing after reg exp extraction when accessing a second time

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

Matthias <mp...@informatica.com> changed:

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

--- Comment #3 from Matthias <mp...@informatica.com> ---
Sorry, it was my fault, a regular expression extractor was not below the http
request. That causes the issue

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

[Bug 64159] Variable values are changing after reg exp extraction when accessing a second time

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

Matthias <mp...@informatica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID

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

[Bug 64159] Variable values are changing after reg exp extraction when accessing a second time

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

Matthias <mp...@informatica.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
                 CC|                            |mpaetzold@informatica.com

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

[Bug 64159] Variable values are changing after reg exp extraction when accessing a second time

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

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
             Status|NEW                         |NEEDINFO

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

[Bug 64159] Variable values are changing after reg exp extraction when accessing a second time

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

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
Created attachment 37027
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37027&action=edit
Sample test plan with regex and foreach loop

It is not clear to me, where you think JMeter is giving you problems.

My guess is, that you are experiencing the order of the group matches for the
regex. The debug sampler is giving out the variables in alphabetical order,
which means that result_10_g1 is printed out before result_1_g1.

Attached is a simple test plan, that uses a regex extractor and a foreach loop
to iterate over the results. They are processed in the correct order (on my
machine ;)

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