https://bz.apache.org/bugzilla/show_bug.cgi?id=60937
Bug ID: 60937
Summary: CSV Data Set Config altering JSON inappropriately when
variable is contained within JSON object.
Product: JMeter
Version: 3.0
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 34886
--> https://bz.apache.org/bugzilla/attachment.cgi?id=34886&action=edit
jmeter log
Steps:
1. Record http requests using the jmeter proxy.
2. Configure the CSV Data Set Config component.
3. Edit the captured http post requests, substituting json integer values with
the jmeter format for variables ${variable}
4. Run the jmeter script and view the results via 'View Results Tree'.
Notice the difference between the recorded request and the request sent during
'playback'.
I have included two json files, one that is GOOD (recorded) and one that is BAD
(modified and sent by jmeter).
It appears that jmeter is removing escape characters ... '\' and this is
causing the json to become invalid.
I have attached both json objects (GOOD & BAD), my jmx file and my jmeter log.
NOTE: The CSV Data Set Config is replacing my variable correctly using my csv
text file ...
java version "1.8.0_121"
Here is the specific part of my json that is being modified:
Recorded and is good:
"{\"r1-a4-concerns-reply\":\"{\\\"1\\\":\\\"\\\",\\\"2\\\":\\\"\\\",\\\"3\\\":\\\"\\\",\\\"sent\\\":false}\"
Played back and seen via View Results Tree:
"{\"r1-a4-concerns-reply\":\"{\\"1\\":\\"\\",\\"2\\":\\"\\",\\"3\\":\\"\\",\\"sent\\":false}\"
--
You are receiving this mail because:
You are the assignee for the bug.