https://bz.apache.org/bugzilla/show_bug.cgi?id=65259
Bug ID: 65259
Summary: JMESPathExtractor Attribute Match No. Required
Product: JMeter
Version: 5.4.1
Hardware: PC
Status: NEW
Severity: minor
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: JMETER_5.5
Created attachment 37821
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37821&action=edit
JMX to reproduce error
According to the documentation
https://jmeter.apache.org/usermanual/component_reference.html#JSON_JMESPath_Extractor
"Match No." is not required. But if no value is given an exception occures.
Steps to reproduce:
- run attached JMX file ("Match No." is empty for JMESPathExtractor )
- found: no value is exptracted, Error log is written
Solution 1: update documentation and mark as Required
Solution 2: use 0 as default value as in "JSON Extractor"
found log entry:
ERROR o.a.j.t.JMeterThread: Error while processing sampler: 'jp@gc - Dummy
Sampler'.
java.lang.NumberFormatException: For input string: ""
at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:68)
~[?:?]
at java.lang.Integer.parseInt(Integer.java:662) ~[?:?]
at java.lang.Integer.parseInt(Integer.java:770) ~[?:?]
at
org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor.process(JMESPathExtractor.java:66)
~[ApacheJMeter_components.jar:5.4.1]
at
org.apache.jmeter.threads.JMeterThread.runPostProcessors(JMeterThread.java:955)
~[ApacheJMeter_core.jar:?]
at
org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:573)
~[ApacheJMeter_core.jar:?]
at
org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:489)
[ApacheJMeter_core.jar:?]
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
[ApacheJMeter_core.jar:?]
at java.lang.Thread.run(Thread.java:832) [?:?]
--
You are receiving this mail because:
You are the assignee for the bug.