Mobile phone weak network testing tool: Charles

When we test the app, we need to test some scenarios in the case of a weak network, so how to use Charles to set up a weak network, please see the following steps:

prerequisites:

The mobile phone and the computer must be in the same local area network

Charles connects to mobile phone to capture packets

1. Open Charles, click Proxy, Settings

2. Click Proxy TAb, set the port to 8888, check the Enable Transparent HTTP Proxy, and click OK

3. Turn on the mobile phone-wifi-HTTP proxy-select manual, enter the server address as the IP address of the computer, and enter 8888 for the port

IP address of the computer:

4. After connecting, a pop-up box will appear in Charles, select OK

5. Open the mobile APP, and the data interface on the app will appear on Charles

The mobile phone is connected successfully-we can simulate the weak network test!

1. So, what is a weak network?

When the speed is lower than 2G, it belongs to the weak network. 3G can also be classified as weak network. WIFI is generally not classified as weak network.

2. What are the test methods for weak networks?

1) SIM card network switching

2) Actual weak network scenario test (subway, elevator, parking lot)

3) Use software for network proxy (Charles)

3. Open Charles to simulate weak network

Open Charles——Click Proxy——Current Limiting Settings——Click to check Enable Current Limiting, and click OK

Current limit is preset with the simulated data of the network settings commonly used by Charles, and you can also set the data yourself according to the actual situation to simulate the weak network

 [Weak network] Uplink: 10 Downlink: 30

 [2G] Uplink: 15 Downlink: 50

 [3G] Uplink: 384 Downlink: 2800

After the setting is complete, check the homepage; the little turtle is lit; it means that it can be tested

Finally : The complete software testing video tutorial below has been organized and uploaded, and friends who need it can get it by themselves [Guaranteed 100% free]

Acquisition of complete set of information

Guess you like

Origin blog.csdn.net/wx17343624830/article/details/131141236