DescriptionModern mobile computers are sold with an advertised battery life, ranging from a few to tens of hours. Nonetheless, when these devices are used on a daily basis, many users report the actual battery life doesn’t match up with the advertised numbers. For Chrome OS devices, we wanted to try to report battery life that was as close to what an average user experienced as possible.The power_LoadTest was created to emulate average user behavior and measure the resultant battery life. The test is implemented as an open source Chrome extension which anyone can install and run.The power_LoadTest is run as a series of one hour long iterations until battery exhaustion. Within each iteration, a load mix known as “60/20/10/10” is run:
The parameters of the system under test are as follows:
Throughout the duration of the test, there are 5 sites loaded in background tabs. These sites were chosen to represent typical actions of a user on a daily basis:
RunningIf you are interested in running power_LoadTest on a Chrome OS system, you will need a Chromium OS test image that can be built by following Build your own Chromium image instruction with "./build_image --board=${BOARD} test" command. After the test image is built, you can follow the Installing Chromium OS on your device instruction to install the test image to your device under test (DUT). UPDATE: starting with R35 pyauto setup below is no longer necessary as power_LoadTest uses telemetry chrome automation framework NOT pyauto. In addition, power_LoadTest currently relies on the pyauto automation framework. This dependency is not automatically installed on the test image. Some insight into the dependency complications can be seen here ( search pyauto ). To add the pyauto dependency you can run a test that explicitly installs it: $ ./run_remote_tests.sh --remote <DUT_ipaddr> ^client/site_tests/desktopui_PyAutoInstall/control$ This may only be necessary for the first test image installed on the device as subsequent updates will maintain these deps from stateful partition. Since running power_LoadTest requires that the device is disconnected from the wired Ethernet (including USB-Ethernet) as well as from an AC power source, it is trickier to run it compared to running other autotests if you do not have both the build machine and the DUT under a same private WiFi network connected to the Internet. If your build machine and the DUT are in the same WiFi network, you can run power_LoadTest by running the following command in scripts directory in chroot. (make sure you have battery fully charged with AC and Ethernet disconnected from the DUT before running the test) $ test_that <DUT_ipaddr> power_LoadTest If your build machine is not on the same private WiFi network as the DUT (applicable for most Googlers and any who have the build machine connected to a corporate network), follow the below instruction.
Interpreting ResultsWhen the test completes there will be a keyvals file at power_LoadTest/results/keyval. The test will publish minutes_battery_life which we use to track platforms battery life. However that only tells part of the story. As any other real world test the results need other measurements should be examined to ensure the battery life estimate is genuine. Keyvals of particular interest beyond minutes_battery_life to judge quality of run are:
ConclusionWhile the initial version of power_LoadTest seems to emulate well what users experience every day on Chrome OS devices, this test will be constantly improved. As we learn more about how users use Chrome OS devices and how experienced battery life differs from tested battery life, we will use this data to refine the test, potentially changing the load mix or the parameters of the test. Our goal is to ensure that when you purchase a device, you know - with reasonable certainty - how long that device will last in your daily use. |
Chromium OS > Testing Home >
