I recorded a Mobile Native application (HTTPS/JSON) using Jmeter.
The requests and responses captured as in JSON format and I am not able to view the values that are passed in the requests because they are encoded in base64.
How do I proceed?
I recorded a Mobile Native application (HTTPS/JSON) using Jmeter.
The requests and responses captured as in JSON format and I am not able to view the values that are passed in the requests because they are encoded in base64.
How do I proceed?
You can decode Base64 on the fly via Beanshell PostProcessor.
Put the following code into Beanshell Post Processor's "Script" area
import org.apache.commons.codec.binary.Base64;
prev.setResponseData(Base64.decodeBase64(data));
Explanation:
prev
is a shorthand for SampleResult class instance holding result of the parent samplerdata
is the byte array representing parent sampler response data. See How to use BeanShell: JMeter's favorite built-in component guide for more details on what can be done via Beanshell scripting.