iOS Phone traffic consumption
Use WiFi or data connection on your iphone to operate a scene in an app to monitor traffic consumption in real time:
(in general, pay more attention to data connection 2G or 3G or 4G traffic consumption situation)
Prerequisite Preparation:
1. Xcode
2. Instruments (7.1.1 Version): Network Activity
Operation Steps:
1. Open the Instrments,iphone connection on the Mac computer (the phone turns on data connection mode);
2. Select the connected iphone, then select the application to be monitored;
650) this.width=650; "src=" http://note.youdao.com/yws/res/585/94537B476D3D4F4A8436E1965330B224 "alt=" B.png "style= "Margin-top:8px;height:auto;"/>
3. Select Network Activity mode under the Library for monitoring networks
650) this.width=650; "src=" Http://note.youdao.com/yws/res/585/CE923B932E384A378BB6104299FE454F "alt=" A.png "style= "Margin-top:8px;height:auto;"/>
4. Click on the red flag to monitor the network packet real-time
650) this.width=650; "src=" Http://note.youdao.com/yws/res/585/BFDB377D5E264EE4AF6B117173611B1B "alt=" B.png "style= "Margin-top:8px;height:auto;"/>
5. If it is a WiFi connection, view the data in the above table in the beginning of the WiFi, if it is a data connection, view the cell-related data in the table above;
650) this.width=650; "src=" http://note.youdao.com/yws/res/585/30FC5A59497F42CC854DD5C3E7DF9836 "alt=" C.png "style= "Margin-top:8px;height:auto;"/>
======= The above steps, while operating on the mobile phone, may observe the traffic packet consumption in this table, in-out respectively received and sent traffic data, packets as the number of packets;
======= can choose the left time to sort, so that the latest data packets are displayed at the top;
In the upper part of the =======, the time-axis chart can be seen in time-data consumption-the number of packets;
Application Scenario Description:
1. Generally used for testing the second stage, after the first round of functional testing completed;
2. The test scenarios are:
-
Overall observation: the use of the process of the flow of consumption, for example, the application of initial start-up process, the normal use of the application of the function of the process;
-
Background silence: The application will be used in the process, cut back to the background for about 10 minutes, observe the process of real-time traffic consumption, normal should not appear too much consumption;
-
Specific scenarios: according to the application characteristics, the analysis of the need for a large number of consumption of traffic scenarios, for individual operation and testing, such as synchronization start-synchronization end, the process of flow consumption;
Possible problem points:
-
Error traffic consumption, in the scenario does not need to consume traffic flow, for example, in the Cloud note editor to manipulate data, do not need to consume traffic, if there is consumption, there is a problem;
-
repetitive and fixed frequent traffic consumption, in some scenarios, there are some repetitive non-business needs and fixed traffic consumption, there must be a problem. For example, a certain frequency under a fixed flow of consumption, is not a normal business consumption within the scope;
Official website authoritative use description:
Https://developer.apple.com/library/prerelease/tvos/documentation/AnalysisTools/Reference/Instruments_User_ Reference/wifiinstrument/wifiinstrument.html#//apple_ref/doc/uid/tp40011355-ch32-sw1
iOS Test Basics Five: iOS phone traffic consumption