1

Can we test mobile application either iOS/Android(Native/hybrid)App using Apache JMeter? If yes, what's the way?

Ripon Al Wasim
  • 36,924
  • 42
  • 155
  • 176

1 Answers1

2

You cannot test mobile application directly i.e. how long does it take to load, how responsive it is, etc. via JMeter. What you can do with JMeter is to simulate large number of mobile devices talking to your backend server to measure performance and also apply some client-side assertions to make sure that server's response is not malformed.

It is possible to record mobile application network activity via JMeter HTTP(S) Test Script Recorder as follows:

  1. Add aforementioned HTTP(S) Test Script Recorder and a Recording Controller to Workbench
  2. Make sure that host, running JMeter and mobile device are on the same network (i.e. use Wifi, not cellular data plan) and the host running JMeter is accessible (i.e. firewall software doesn't block port 8080)
  3. Start JMeter's proxy
  4. Configure device to use JMeter's proxy.
  5. Launch your application and perform necessary actions
  6. When you finished stop JMeter's proxy and copy recorded requests to Test Plan
  7. Perform correlation and parametrization if needed
  8. Configure Thread Group virtual users and ramp-up according to your load scenario.
  9. Launch the tests
  10. Analyze results

References:

Dmitri T
  • 159,985
  • 5
  • 83
  • 133