1
votes

I want to perform load test on my mobile app using Jmeter but I am facing issues in configuring my mobile phone. I have installed Jmeter and added recording template in it and set the port no of HTTP Test script recorder to 8080. NOw I installed the certificate in my mobile device and set the proxy settings of my device by giving IP and port no. But after setting proxy I am unable to access the internet. My app is not working due to loss of internet and when I remove proxy it starts working fine.

3

3 Answers

0
votes

Ensure you start proxy.

Ensure that your Mobile sees your machine (you're in the same network)

If your application uses https you need to add to your mobile root authorities the jmeter generated certificate located in jmeter/bin folder and generated the first time you start Recorder.

Finally If you’re under android then see this:

0
votes

I had the same issue trying to connect JMeter version 4 to a mobile app on an android device. What solved my issue was to turn off the Windows 10 firewall. I did not think this would be an issue as the mobile device connected to the wifi hotspot I created on my laptop. But as soon as you setup a manual proxy on the android device it got blocked. The firewall was blocking it.

0
votes

Install the certificate by following the steps below. I was also not able to connect to internet after installing the certificate. The mistake made by was, I was not giving .crt extension when installing the certificate. Once the extension was given, I was able to make connection to jmeter and also use the app with internet.

  1. Import the certificate to the phone.
  2. Click on the imported certifcate.
  3. In the certificate name section give any name of your choice and ensure the extension .crt is given.