APP weak network testing method

Common tools

• Use packet capture tool
   -Fiddler / Charles
• Use the chrome browser developer tools
• Use the phone comes with speed limit function (only for IOS devices)
• need a hardware device (router or network card)
   -NEWT / ATC / WANem

a, use packet capture tool
these two are the more commonly used packet capture tools, the main way is through a custom network delays, to simulate different network conditions.

 

 

 
1.Fiddler
to simulate the speed limit by Fiddler, Fiddler has always been a proxy because it provides a callback interface in front of the former client requests and server responses, we can customize some logic in these interfaces inside. Fiddler speed is simulated from the client before the defined speed limit request logic, this logic is to limit the upload speed and download speed network by the delay time data transmitted or received data, so as to achieve the speed limit.
Fiddler offers a feature that lets us simulate low-speed network environment, enable the method shown in Figure

Setting uplink and downlink rate
network algorithm Value: 1000 / = download speed required delay time (ms)
as 5kb / s, needs to receive data delay200 ms

 

 Start analog modem
Rules → Performances → Simulate Modem Speeds
to set the phone agent

• After setup is complete, empty the original log, and use your app to operate under conditions of weak net
• Select the first request and the last request, available throughout the overall page load time consumed. From the bar chart may be a request which are the most time consuming, thereby accessing the webpage access speed optimization

 

 

 

 


2.Charles
open Proxy-> Throttle Settings

 

 

Charles preset speed has been commonly used in simulation setup, you can be provided as necessary, of course, you can also add your own presets

Second, use Chrome Developer Tools
to open the Chrome browser developer tools

Open Network, click No throttling the drop-down box, as there are a lot of presets can be selected according to their needs, but also support for custom add

Third, the use of the phone comes with the rate-limiting feature
of the method is only applicable to IOS platform
using its own Network Link Conditioner, network conditions can be simple simulation of various speed
settings -> Developer -> NETWORK LINK CONDITIONER

The phone comes with speed limit function

after opening the Status entry, select the preset or custom settings

Fourth, the need for hardware devices - a router / card
market has a number of weak network simulation tools, such as:
• Microsoft Emulator for Windows Toolkit Network (NEWT)
• Facebook Traffic Control of Augmented (ATC)
• WANem

Guess you like

Origin www.cnblogs.com/mawenqiangios/p/11615727.html