How To Do Mobile Performance Testing Using JMeter

Page 1

What comes to our mind for the very first time when we hear about JMeter? Is it Performance Testing? Or Web App Load Testing? Well, most of us are unaware that JMeter can also be used for performance testing of Android/iOS apps. It’s quite similar to recording scripts like in case of web apps, all we have to do is to configure a proper proxy on mobile devices. So here in this post we would be listing down the process to record a performance test script in JMeter for Android and iOS platforms. Prerequisites : JMeter Training version 3.0, Android phone (versions above Jellybean) or iPhone (version 8.0 onwards) JMeter Configurations 1. Launch JMeter -> Navigate to File option -> Templates -> Select Recording -> Click on Create (So now we have added all the necessary parameters for Recording scripts) 2. Go to HTTPS Test Script Recorder -> Set port to 8080 Now find your IP Address by ifconfig for Linux and ipconfig for Windows. We will load up this IP address on our phone Android/iOS phone to setup proxy. Also Read: JMeter Tutorial Mobile side Configurations iOS proxy configuration: ● ● ● ● ●

Go to Settings–>Wi-Fi option. Click on your connected network. Select ‘Manual’ option from HTTP Proxy section. Set ‘Server’ value as your computer’s IP address and ‘Port’ value to 8080 as JMeter configuration. Refer above image to get an idea about this setup. We need appropriate JMeter Certificate and save it to our phone. ApacheJMeterTemporaryRootCA.crt can be downloaded from https://gist.github.com/borisguery/9ef114c53b83e553b635 Install this certificate on your iPhone.

Android proxy configuration: ●

We need appropriate JMeter Certificate and save it to our phone. ApacheJMeterTemporaryRootCA.crt can be downloaded from https://gist.github.com/borisguery/9ef114c53b83e553b635 Download zip file for the certificate and send the certificate on mail. And install through mail. Once the certificate is installed phone will ask to apply a lock. And a notification appears showing Network may be monitored.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.