https://bz.apache.org/bugzilla/show_bug.cgi?id=66122
Bug ID: 66122
Summary: Error when using __FileToString to set GraphQL request
body
Product: JMeter
Version: 5.5
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: JMETER_5.5
Created attachment 38317
--> https://bz.apache.org/bugzilla/attachment.cgi?id=38317&action=edit
A sample project to reproduce the bug
I'm trying to set my body based on what is in a file and it fails saying the
JSON is invalid. But when I set the request body manually the same content the
request works. In the results tree view I can see that the only difference is
that the manual request is "encoded", it has /n instead of visual newlines.
Steps to reproduce:
-1: Download and open the .jmx attached to this bug
-2: Create a file with the content being the body from the first request ("With
Body Set Manually")
-3: change the path on the second request ("With Body From File") to your file
path
-4: Run and see in the View Results Tree that the first one works and the
second one fails
--
You are receiving this mail because:
You are the assignee for the bug.