JMeter Setup Configuration for Mobile Application(Test Script for the mobile app)

Record and Play

The easiest way to write a test script for a load test on the mobile app is to record and play. If you know the endpoints then that's even better you can go accordingly but you are unaware of any endpoints and which API to hit then you can record and play test script

Pre-requisites
Both Mobile devices and JMeter installed on a computer should be on the same network. This enables your computer to be a proxy for your mobile device.
Step 1: Configure Mobile device
a. Open Settings → Wi-Fi → Your connected network
b. Choose Manual from HTTP Proxy section
c. Set Server = Computer’s IP address
d. Set Port field = JMeter’s port value




Step 2:
Start Recording
a. Go to Files and choose a "Template" option
b. Choose a Recording option and create
c. Go to HTTP(S) Test Script Recorder file and Click on "Start" option


Step 3 :
Record all the action that you want to perform load test for, then after recording you will be provided with different endpoints under "Recording Controller"
Filter out the unnecessary endpoints and add on only required endpoints

Step 4:
Configure "Thread Group" according to your requirement and test plan

Step 5: 
RUN the test script