Reputation: 41
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
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)
More information: How to Use JMeter Functions - Part III
Upvotes: 2