Recording A Hybrid Mobile Application Script In Jmeter

Recording A Hybrid Mobile Application Script In Jmeter

  • perf-test.com need your contributions to build up a strong repository of performance engineering resources.

Recording a Hybrid Application Through Mobile Device

The communication between the device or emulator and the server is recorded through the proxy based recorder. Both Jmeter and the mobile device must be on the same network. The mobile device must be connected to the Jmeter network in Wi-Fi. On the mobile device, it is necessary to manually modify the proxy used by the application or by the browser. The hostname must be the name or the IP of the Jmeter machine. The port is the NeoLoad recorder port (8090 by default).

upload_2015-12-4_16-40-9.png



Configure the Jmeter Desktop:

  • Start the jmeter recording engine (proxy) on the desktop application - by selecting Add–>Non-Test Elements–>HTTP(S) Test Script Recorder
  • Add 8090 as Port value and click Start button. This will start the JMeter proxy on desktop.
  • Connect the mobile device to wireless and give the ip address of the jmeter machine as proxy.

Configure Mobile Device (Android):

  • Go to Settings–>Wi-Fi option.
  • Long tap on connected network and click ‘Modify Network’ option.
  • From the opened dialog box, check ‘Advanced options’ check box.
  • This will open advanced settings from which we can modify proxy manually. For this, set ‘Proxy’ option to ‘Manual’.
  • Now, set ‘Proxy hostname’ as your computer’s IP address and ‘Proxy port’ to 8090 as we have setup in JMeter configuration.

Refer below screenshot.​
upload_2015-12-4_16-57-37.png


Configure Mobile Device (IOS)
  • Go to Settings–>Wi-Fi option.
  • Click on your connected network.
  • Select ‘Manual’ option from HTTP Proxy section.
  • Set ‘Server’ value as your computer’s IP address and ‘Port’ value to 8090 as JMeter configuration
Refer below screen

upload_2015-12-4_17-0-4.png


After this step is performed, you start doing the flow you want on the hybrid app in the mobile device and you should see the traffic getting recorded in the Jmeter.

Note : Please be vary of any firewall rules which may block connection between the mobile device and the desktop computer.
Author
admin
Views
57
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from admin