https://bz.apache.org/bugzilla/show_bug.cgi?id=60730
Bug ID: 60730
Summary: JSONPostProcessor does not set _ALL variable when only
one match occurs
Product: JMeter
Version: 3.1
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
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) {
--
You are receiving this mail because:
You are the assignee for the bug.