I have connected mobile phone with my IP config and set port which I have set in JMeter. but while start recording in JMeter and start the application in a phone then it showing an error in JMeter
1 Answer
You need to install JMeter's self-signed certificate so JMeter could decrypt and record HTTPS traffic.
- Locate
ApacheJMeterTemporaryRootCA.crt
file under "bin" folder of your JMeter installation - Send it to mobile device vie bluetooth or email or whatever way plays for you
- Tap on the certificate in email attachment or file manager and follow Android OS instructions to get it installed
- Remember that the certificate has limited life time so you will have to repeat the procedure each 7 days
See HTTPS recording and certificates section of the HTTP(S) Test Script Recorder User Manual entry for more details.
Also be aware of an alternative solution of recording mobile device traffic, it automates not only certificate installation process, but it's capable of exporting recorded scenarios in "SmartJMX" mode with automated correlation applied, it means that it will generate all the necessary Post Processors to handle dynamic parameters, see How to Cut Your JMeter Scripting Time by 80% for more information.