Under normal circumstances, the network connection timeout may be due to the following points:
1, the network is disconnected, manually shut down the network connection
2, network congestion, you can not be in the program default wait time to get reply packets.
3, the network is not stable, the network can not complete the delivery of server information.
4, system problems, system resources are too low, can not provide sufficient resources for the program to process server information.
5, network system busy, unable to respond
The above all the situation together is the network has the problem, the app should do how to handle to prompt the user to know the current specific problem arises the reason is what, let the user can make their own decision according to the current situation, the network failure situation processing is often easy to ignore in the test test point, Because it involves the Web request page, we should all go to focus on testing, exclude some pages do not do the appropriate processing, general network problems, will have toast "network connection failed" or jump directly to the network failed page, similar to the following:
Therefore, the test can be used to test methods are: 1, manually turn off the data business or WiFi, open the network request again, 2, using Charles in the breakpoints set breakpoints to test. Charles Test steps:
- Select the request to set timeout, right click, set breakpoints,
- After breakpoints, depending on the steps required for the test, you can see whether the application page has the results we expect, Charles will appear as follows, click Cancel, again the path of the previous breakpoints, deselect it.
- The following list I for the network time-out processing, using xmind finishing problems, including: module, function point/path, Reason (interface), here to add the interface in order to facilitate the development of search problems, the finished Xmind information pasted into the bug management system, the developers will be unified to modify, as follows:
Charles Analog mobile App network timeout