1. Configure Mobile Device
Open JMeter and add the HTTP Proxy Server component to WorkBench. Then in the
component settings, set a port to listen (for example 8089). In the configuration settings of
the mobile device, configure the proxy to use as seen in the image below. As a proxy
hostname, you will need to set the IP address of the computer on whichever JMeter
application is open.
So, follow these steps:
1. Run JMeter application on your computer.
2. Add to JMeter’s test plan HTTP Proxy Server component (right-click on WorkBench –
Add – Non-test Elements – HTTP Proxy Server), as shown below:
3. In the HTTP Proxy Server component’s global settings, set the port to listen (for example
8089); and click on the Start button to start configured proxy.
4. Get your computer’s IP address. For more details how to do it you can refer directly to the
help documentation of whichever operating system that you’re using (for example, for
Windows 7 go to http://windows.microsoft.com/is-is/windows-vista/find-your-computers-ip-
address ).
5. Under network configuration of your mobile device, set the computer’s IP address as the
proxy IP and port that you had set in JMeter.
For Android devices:
a. Go to Options – Wi-Fi, long tap on the current network connection and choose the “Modify
Network” popup menu item;
b. Check “Show advanced options” checkbox;
c. Set parameter “Proxy settings” to “Manual”;
d. In the field “Proxy hostname” type the IP of the computer (for example, 10.2.0.89), into
the field “Proxy port” our port – 8089;
e. Save changes.
2.
3.
4. Step a. Step b. Steps c.–e.
Note that Android supports only HTTP proxy. If your application uses an HTTPS
connection, then you may use an additional application that performs with HTTPS proxing.
Run Mobile Web Application
Now you can open the web application you want to test and use it as you usually do. For
example, we chose an application that streams news. While using the application, you must
perform the same actions that are performed by actual users (login, scroll, comment, click
varying links, search information, etc.)