Test weak mobile network

 

From the test perspective, the need for additional attention to the scene far more than net off the situation, such as a network failure. For the definition of weak data network, different applications as defined meaning is not the same and do not clear, not only to consider various types of network lowest rate, but also with business scenarios and application types to divide. Accordance with the characteristics of movement, the general application rates are lower than the 2G network are weakly, or may be divided into weak 3G network. In addition, Wifi weak signal will usually be incorporated into a weak network test scenarios.

Why a weak network testing

My current project where the product is a low-resource environment adapted to the medical IT system, currently mainly used in the Tanzania region. According to statistics, in Tanzania and other East African countries, it is widely used 2G network coverage to over 40% 3G network coverage is very small, and less stable. Accordingly, the current delivery requirements of the application App i.e. at least in weak networks and network state to normal operation.

 

How do weak network testing

Weak network environment simulation test depends on the weak network environment. There are two general ways to build environment: in software and hardware. Low-cost way of software, mainly to weak configure network environment by simulating network parameters, generally speaking you can achieve the purpose of the test is generally shared by the hot setting, or a third party, such as:. Charles, Network link Conditioner in various types of network software. in, mainly bandwidth, packet loss, delay and other weak network simulation environment. If you require closer weak network environment, such as many of the special tests, they will be more inclined to help test by hardware, but in this way will be relatively a lot of trouble, usually set up by the network maintenance assistance, such as raspberry pie. Of course, in the case of some can not be simulated, can only rely on artificial moved to the elevator, subway and other weak signal areas.

 

Weak network problems encountered during testing and solutions

1, phenomenon: when the user logs download the application initialization data, download speed is too slow process due to click Cancel and log in again, duplicate data after initialization is complete, resulting in inconsistent data.

The reason: data download, the download fails, the data is not rolled back, re-download after suspension, appear duplication of data

Solution: Transaction data download logic, the download fails, use a local database for data rollback.

2, phenomenon: the user clicks to upload data, network data upload process is weak and unstable, and upload the data automatically triggered based networking status, resulting in duplication of data is written, the formation of dirty data

The reason: the data upload process, due to the failure retransmission mechanism, there will be two consecutive write operations, and without making unique identification process

Solution: According to the characteristics of the dirty data may result in local, through key fields, such as creation time, key-value generating hash key value, etc., when the recording mark is unique, i.e., data write, check hash key is present, If it does exist, this duplicate data discarded.

3, phenomenon: in the weak network environment, the user enters a user name and password and click login, use the link timeout returns user name and password error.

Cause: After the connection timeout weak network environment, the network service logic processing according to the intensity, causing the return timeout exception.

Solution: After a weak network connection timeout, the application checks whether there is a local database user login information, if there is immediate access local user information to log on.

4, phenomenon: in the weak network environment, users enter a user name and password click login, the login process application crashes and flash back.

The reason: weak network environment data download times out, load data rely heavily loaded later asynchronous. Data have not had time to return the application to jump to the next activity, leading to a crash.

Solution: robust data loading process, the download status interface to load data by marking backstage, after-dependent data download to finish before making the jump page.

5, the phenomenon: weak network environment, the user requests a page in response to a long time, waiting for the process, part of the controls on the page can still operate, when the user clicks the control, the application flash back phenomenon occurs;

Cause: no data loading processes is determined, a controlled direct exposure control, when the control data dependent operations occur, do not return data before processing compatibility.

Solution: In the data loading process, the external exposure controls settings page is "inoperable" when the data is loaded and then release.

6, phenomenon: in the weak network environment, users first enter the search keywords do not get a response, enter new keywords again and send the request and wait for the search results are returned, before the current results of keyword search results page is refreshed coverage

Cause: after the request to return the intermediate slow display the final results, the data to be returned before the request is not processed.

Solution: asynchronous request unfinished task cancel.

to sum up

Of course, the fundamental factors appear to be happening is not a weak network, we would meet in our usual PC applications, but the more prominent of these issues in a mobile network environment will be weak performance. In summary therefore, the function, performance, stability, exception handling characteristics of the scene to summarize several dimensions, weak network testing focused on the following scenario:

 

 

 

reference:

http://w.huanqiu.com/r/MV8wXzk3NTY5NjFfNDhfMTQ4MDU2NDI1OA==

 

Guess you like

Origin www.cnblogs.com/sea-stream/p/11267299.html
Recommended