APP power test

APP test power to do so.

 

iOS electricity-related issues has been a difficult thing for testers, power testing how to carry out, how to reproduce the problem and follow-up position location, user feedback related to power issues if we get more information, and so on, has not a good solution that we face problems related to electricity, always helpless. The entire project team often receive such a feedback: You see, you develop the APP, I did not how to use it, the power consumption on the first row. For such feedback, what can we do about it? Before we are confused, but after a period of trial and effort, things have changed a number.

First, the agricultural era of power test

Before very long time, we were conducted to test the power of the poor in this way:

1, and the length of the selected test scenario;

2, to the mobile phone charging and discharging, the remaining charge in the mobile phone of our pre-value, such as 90%, when the beginning of each scenario testing to ensure that mobile phones are the power;

3, the mobile phone system settings, usually pay attention to the screen brightness, Bluetooth, location, notification message, volume, back office applications and so on, in order to ensure simple, usually all closed or transferred to a minimum;

4, recording the remaining capacity at the beginning, and perform tests at the end of the test once the remaining capacity after recording two power difference, power consumption on this scene within a certain duration; the remaining capacity Well, direct reading display on mobile phones obtaining a value or via an interface (will be described later) can be almost no difference;

It is quite simple, but not completely useless, apparent power consumption problem, or can be found, as long as the election was the scene of a can. If the problem would not have been able to detect the use of this method it is not. Hey.

We will be back this program is optimized, the same process, but fully automated, manual finishing can participate only after the data came out. Specific method is, before the phone and mac, plus a development board Arduino, mac end by an instruction, control boards can chi energized or de-energized, charge or discharge in order to achieve the effect of the phone.

But no matter how full automation is good, after all, it is the most extensive way, there is no specific data, unable to help locate, if still sporadic problems, it would be more helpless, only to give up.

Second, the industrial era of power test

Guess you like

Origin www.cnblogs.com/zenghongfei/p/11596903.html