sachin
sachin

Reputation: 25

Why body is not included in jmeter request?

As the images show, we are sending some body in http sampler, but in result tree we are not seeing body as a part of request and hense it is failing.

Sampler Screen Shot Sampler

Result Tree Screen Shot enter image description here

Upvotes: 0

Views: 746

Answers (1)

Dmitri T
Dmitri T

Reputation: 168197

I can only think of one possible option: you're running your test in command-line non-GUI mode and by default JMeter results file configuration request and response data are not saved

If you want to see request and response data for non-GUI tests executions you need to add the next lines to user.properties file:

jmeter.save.saveservice.output_format=xml
jmeter.save.saveservice.response_data=true
jmeter.save.saveservice.samplerData=true
jmeter.save.saveservice.requestHeaders=true
jmeter.save.saveservice.responseHeaders=true
jmeter.save.saveservice.url=true

or add a Listener like Simple Data Writer and choose what and where to store. See How to Save Response Data in JMeter article for more details.

If you're facing this behaviour in GUI mode - most probably there should be something in jmeter.log file, a WARN or ERROR line which contains the reason or at least a clue for the root cause of the issue.

Upvotes: 1

Related Questions