When i tried to record a script for native app testing using Jmeter i'm facing issues to do it when i keeping the proxy same as Jmeter's and IP address of my pc in android device, before changing the proxy wi-fi internet is working but not after. I'm unable to record scripts. Any suggestions regarding this! Thank you as advance!
- First of all make sure you have started JMeter's HTTP(S) Test Script Recorder as it has to be running so your android device could access the Internet using JMeter as a proxy.
- In case of recording secure HTTPS traffic you might need a third-party app like ProxyDroid
In case of recording HTTPS traffic you will need to import JMeter's self-signed certificate onto your device
ApacheJMeterTemporaryRootCA.crtfile (it's being generated in "bin" folder of your JMeter installation when you start JMeter's HTTP(S) Test Script Recorder)
- transfer it to your android device somehow (i.e. send it to yourself via email)
- open the email attachment on the android device and follow system dialog to get it installed
An easier option would be using BlazeMeter Proxy Recorder, in this case you won't have to worry about proxies and certificates. As a bonus you will be able to export recorded scripts in "SmartJMX" mode with automatic detection and correlation of dynamic parameters.