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

How to Record a Script For a Mobile App for JMeter

by inDrive.Tech
inDrive.Tech HackerNoon profile picture

inDrive.Tech

@indrivetech

Team of inDrive developers who know how to experiment and...

June 20th, 2022
Read on Terminal Reader
Read this story in a terminal
Print this story
Read this story w/o Javascript
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
Apache
featured image - How to Record a Script For a Mobile App for JMeter
1x
Read by Dr. One voice-avatar

Listen to this story

inDrive.Tech HackerNoon profile picture
inDrive.Tech

inDrive.Tech

@indrivetech

Team of inDrive developers who know how to experiment and learn from their mistakes for growth.

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):

image

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


image

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


image

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


image

5. Working with Android Studio + Proxyman:


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

image

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

image

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.


L O A D I N G
. . . comments & more!

About Author

inDrive.Tech HackerNoon profile picture
inDrive.Tech@indrivetech
Team of inDrive developers who know how to experiment and learn from their mistakes for growth.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Unni
Coffee-web
Hashnode
Learnrepo
Unni
Hashnode

Mentioned in this story

companies
X REMOVE AD