Reputation: 15
The system encrypts all requests and returns encrypted data. How can I encrypt all requests and decrypt responses? Also, can I load the JSON body of the request with the parameters from the file, something like:
{"Token":${token}, "SomeParam": ${somevalue}}
Upvotes: 0
Views: 1222
Reputation: 168072
Encryption/decryption should be possible using JSR223 PreProcessor and JSR223 PostProcessor correspondingly, JMeter comes with Apache Commons Codec library which provides handy APIs for encryption/decryption of data using various algorithms
With regards to loading request parameters from the file containing nested JMeter Variables go for __eval() and __FileToString() functions combination like:
${__eval(${__FileToString(your_file.json,,)})}
Check out Here’s What to Do to Combine Multiple JMeter Variables for more information.
Upvotes: 1