sam
sam

Reputation: 41

Is there a way to read an external json file in jmeter and use it's values for another request?

Is there a way by which we can have the JMeter read the contents a .json file and use its values in POST body of another request? What would be the necessary steps?

Upvotes: 2

Views: 738

Answers (1)

Dmitri T
Dmitri T

Reputation: 168157

There is __FileToString() function which reads the given file, you can use this function directly in the "Body Data" tab of the HTTP Request Sampler (or wherever you like)

enter image description here

More information: How to Use JMeter Functions - Part III

Upvotes: 2

Related Questions