https://bz.apache.org/bugzilla/show_bug.cgi?id=66122

--- Comment #2 from Felix Schumacher <felix.schumac...@internetallee.de> ---
Well, after trying out to replace the newlines (\n) with the string values
"\n", it became clear to me, that you already found the solution yourself :)

When you are using giving the GraphQL Sampler the Query manually, JMeter knows,
that this is something, that has to be encoded for usage in JSON. If you store
the content in a file and include it, JMeter does not know, if it should do the
encoding, or not and does not do the encoding itself. 

The POST data without the escaped newlines will break the JSON stuff. 

So for the moment, you will have to encode it yourself (might be done with a
Pre-Processor). I am not sure, whether we can safely do the escaping
automatically. Will have to think about it (not sorry, if someone else provides
a good solution :))

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to