paint-brush
How to Record a Script For a Mobile App for JMeterby@indrivetech
865 reads
865 reads

How to Record a Script For a Mobile App for JMeter

by inDrive.TechJune 20th, 2022
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The manual is suitable for any application, but it’s better to automate it. We use Android Studio + Proxyman with prepared emulators and Proxyman to work with JMeter. If all has gone well, we will see traffic from Remote Devices. We hope that tutorial will be helpful for you. If you have any other questions, please ask in the comments. If we have any more questions about the tutorial, please share it with us on Twitter @dailymailonline.com/jmeter/.

Company Mentioned

Mention Thumbnail
featured image - How to Record a Script For a Mobile App for JMeter
inDrive.Tech HackerNoon profile picture

We have a mobile application we need to prepare many scripts for JMeter. We could do it by hand, but it’s better to automate it. In my case, the application can work in two modes — the contractor and the customer. This manual is suitable for any application.


Prerequisites:


Let’s start.


1. Open up Android Studio. I have two of them (the certificate makes it impossible to record simultaneously into both of them, so we need to alternate):

2. Open up Proxyman. Go to the Certificate tab → Install Certificate on Android → Emulators:


3. Click on Override Emulator and install the certificate to both devices:


4. If all has gone well, we will see traffic from Remote Devices:


5. Working with Android Studio + Proxyman:


  • Install the latest or specific build, and run two devices:

  • View queries in the sniffer. Select the rows we need and save them to the HAR file:

6. Use the HAR to JMX converter.


7. Convert the file to JMX and get a template to work in JMeter.


We hope this tutorial will be helpful for you. If you have any other questions, please ask in the comments.