This tutorial explains how to configure JMeter and mobile device to capture mobile application activities for mobile performance testing.


  • Computer and mobile device should be connected the same network.
  • Apache JMeter & Java JDK has to be downloaded and be installed on your computer.
  • Apache JMeter temporary Root CA must be installed. If it is not installed, HTTPS recording cannot be work.

Where is Apache JMeter Temporary Root CA Located?

ApacheJMeterTemporaryRootCA is located in the bin file. Certificates have limited lifetime, around 7 days only, if it is expired you will need to reinstall it. If you can not find this file, When you start JMeter’s HTTP(S) Test Script Recorder, JMeter will generate “ApacheJMeterTemporaryRootCA.crt” automatically.

How to install ApacheJMeterTemporaryRootCA?

  • Attach the certificate to an email and send it to yourself.
  • Open the email on your device and click the certificate.

How to Start Recording with JMeter for Mobile Performance Testing?

Open a new project, set a name and save as .jmx file.

Step-1:  Configurations

Right-click the WorkBench and add HTTP(S) Test Script Recorder. HTTP(S) Test Script Recorder helps to record a user’s activity for mobile performance testing.

Global Settings Port value and Device’s port value should be the same.

If your device is iOS Device, set up the following proxy configurations:    

  • Settings —> Wi-Fi —> Your connected network.
  • Choose Manual from HTTP Proxy section.
  • Add server value, Server = Computer’s IP address.
  • Add Port value , Port = JMeter’s Port value.

If your device is Android Device, set up the following proxy configurations:

  • Settings —> Wi-Fi —> Your connected network.
  • Show advanced options.
  • Choose Manual from HTTP Proxy section.
  • Add Proxy host name value, Proxy host name = Computer’s IP address.
  • Add Proxy Port value , Proxy Port = JMeter’s Port value.

Now, configure your device and computer.

Step-2: Lets Start Recording!

Right-click the SW Test Academy – Mobile Performance Test (Test Plan) and add Thread Group.

Right-click the Thread Group and add Recording Controller.

These elements are sufficient to start a simple test for mobile performance testing. Now, open the HTTP(S) Test Script Recorder and click the Start button.

When you click on Start button, you will see the “Root CA certificate ApacheJMeterTemporaryRootCA created bin directory” dialogue. Just click the OK button and continue.

Start the application and follow the scenario. Now, you can check your recorded requests when clicking the View Result Tree.

Note: You might receive some other request than your target app’s because JMeter proxies all request sent.

If you want to learn more about JMeter, please click to go JMeter section.

– Hasan Yelaldı