0
votes

I try to use JMeter for mobile applications load testing.

But its not comfartable to use WiFi every time when I need to record Mobile app traffic.

Is it possible to use USB cable to record traffic from mobile device to computer?

For example create 2 line Proxy: Mobile Device(Mob app) → Computer (JMeter) Proxy → Mobile Device Proxy → Internet.

2

2 Answers

0
votes

Yes it is possible provided you have access from device to server.

You would be using the localhost/8888 or machine IP / 8888 as a proxy.

0
votes

If you want to use some form of the reverse USB tethering it means that your mobile device is basically using your computer network interface to access the outside world (intra or internet). So you need to record your PC, not your mobile traffic, to wit treat your mobile device as normal desktop application which is communicating with the backend.

In this setup you need to configure your whole operating system to use JMeter as the proxy so the traffic would be intercepted by JMeter's HTTP(S) Test Script Recorder. The setup is different basing on the operating system of the computer, check out How to Run Performance Tests of Desktop Applications Using JMeter article to get the overall idea regarding what needs to be done in order to record the traffic.