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:

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.