Reputation: 184
I have come to know that Configuring android device to use JMeter's Proxy, it is possible to record mobile application network activity via JMeter HTTP(S) Test Script Recorder.
I have an android app and a Web Admin Panel. The app has a sync button. When I press the button, the app syncs with the web admin panel. Now, I want to test the sync process in JMeter. I want to test that after pressing the button, the request to sync is sent appropriately to the server and the server responses correctly. Is it possible to test this in JMeter? If yes, then how to do it?
Upvotes: 3
Views: 12878
Reputation: 21
JMeter records mobile application requests on HTTP(S) Script Recorder and it has features to prepare and run our mobile application performance test scripts. All we have to do is to configure JMeter and Mobile device. In JMeter, we can test both iOS and Android native applications.
Steps to Configure JMeter:
For more details you can see our Android Jmeter blog
Upvotes: 0
Reputation: 168147
You can record mobile application traffic with JMeter by following next steps:
In JMeter:
Set up JMeter proxy server. The fastest and the easiest way is to use JMeter Template feature. From JMeter main menu choose:
File -> Templates -> Recording -> Create
Expand "Workbench"
Locate ApacheJMeterTemporaryRootCA.crt
file in JMeter's "bin" folder
References:
N.B. On some Android operating system versions you won't be able to configure SSL proxy using external application like ProxyDroid
Upvotes: 4
Reputation: 57
Yes, this is possible. As you mentioned you need to add test script recorder, then you should take port number from it (8080 by default). Also you can select you thread group inside target controller for more convenient using. Then you need to configure proxy on your android device.
Press start button inside test script recorder and JMeter will listen to your device. NOTE! Device will have network connection only when Script recorder is started. So if you need to check single request, I recommend you to reach to this step without proxy, then configure it, start script recorder and record only this needed step. After you done with recording, press Stop button. Do not forget to turn off your proxy on device.
Upvotes: 1