jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 60438] New: Clear old variables before extracting new ones in JSON Processor
Date Thu, 01 Dec 2016 19:38:47 GMT

            Bug ID: 60438
           Summary: Clear old variables before extracting new ones in JSON
           Product: JMeter
           Version: 3.1
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
  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
 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.
View raw message