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

            Bug ID: 60438
           Summary: Clear old variables before extracting new ones in JSON
                    Processor
           Product: JMeter
           Version: 3.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: felix.schumac...@internetallee.de
  Target Milestone: ---

As reported in PR 235 on github, JSON Processor leaves old variables when
extracting new ones. That can lead to weird behaviour in ForEach loops.

This bug can be triggered for example by the following flow:

 1. JSON Processor is configured to extract all members of an array and finds
the specified path in the result. It will fill the vars REF, REF_matchNr and
REF_Xs
 2. JSON Processor is still configured to extract all members, but gets an
empty result to extract from. It will remove REF, but REF_matchNr and REF_Xs
will be left untouched.

Another bug, that was uncovered while working on this one, was that the
Processor wrongly filled REF_matchNr with "1" without filling REF_1 when
configured to extract a random match (match number = "0"). The correct
behaviour here seems to be to not fill REF_matchNr at all.

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

Reply via email to