Jmeter is known for Performance and Functional testing tools for Web, but Jmeter can also record scripts for Mobile Applications. You can record and play script from Jmeter and quickly verify Mobile application performance and functional aspects. Jmeter has features to prepare and run our mobile specific performance test scripts. We need to do configuration on Jmeter and mobile devices.
What is mean by Performance:
In this case “performance” means “responsiveness”; i.e. when some user input occurs on your app how long does it take before the user sees the results of that action and can do something with them? When I tap “login” on my mobile banking app, how long before my account information is displayed; is it 200ms or is it 2s, and how much does that vary if I do it 20 times?
A very good recent Forrester report highlighted the key “performance” or “responsiveness” metrics as:
Time-to-render; i.e. how long until something appears on the screen that the user can see.
Time-to-interaction; i.e. how long until the user can do something with the update.
For IOS devices:
a.Go to Settings>Wi-Fi option.
b.Click on the connected network.
c.Select the ‘Manual’ option from HTTP Proxy section.
d.Set the ‘Server’ value as your computer’s IP address and ‘Port’ value to 8080 as JMeter configuration. For more see the below image.
Now, Start running on application whatever you want to run mobile device.Before running application Click the start button on HTTP(s) Test Script recorder in Jmeter.After Clicking on start button you will see one Root Certificate, Click on OK. See the below screenshot
JMeter Proxy Configuration:
1. Open JMeter and right-click the TestPlan>Add >Threads (Users)>Thread Group.
6. On clicking the “START” button you may get some Root CA Certificate message dialogue. Just click the “OK” button.
7.Once you start running your application, the steps of the script will be recorded under “Recording Controller”.
Here I have ran our application HariOme.. Performed some action in app like login, Calander and Click on stop button in tool.
Exapand Recording Controller and see all the recorded steps are displayed
8.Now click the ‘Play’ button displayed in green.
9.Click the ‘View Result Tree’.
10.Here you will see the execution result of your script
In the view Result we are seeing some warnings.. Those are our app related Issues. This is the sample example for recording the scripts.