The JSONPostProcessor does not set the _ALL variable when only one match occurs. The following patch fixes this: Index: src/components/org/apache/jmeter/extractor/json/jsonpath/JSONPostProcessor.java =================================================================== --- src/components/org/apache/jmeter/extractor/json/jsonpath/JSONPostProcessor.java (revision 1782848) +++ src/components/org/apache/jmeter/extractor/json/jsonpath/JSONPostProcessor.java (working copy) @@ -163,7 +163,7 @@ String suffix = (matchNumber < 0) ? "_1" : ""; placeObjectIntoVars(vars, currentRefName + suffix, extractedValues, 0); if (matchNumber < 0 && getComputeConcatenation()) { - vars.put(currentRefName + ALL_SUFFIX, vars.get(currentRefName)); + vars.put(currentRefName + ALL_SUFFIX, vars.get(currentRefName + suffix)); } } if (matchNumber != 0) {
Fix will be part of version 3.2: Author: rjung Date: Mon Feb 13 21:31:47 2017 New Revision: 1782882 URL: http://svn.apache.org/viewvc?rev=1782882&view=rev Log: JSONPostProcessor does not set _ALL variable when only one match occurs Bugzilla Id: 60730
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4279