1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 AUTHOR = "Chrome OS Team" 6 NAME = "power_LoadTest" 7 PURPOSE = "Measure power draw when system is under load." 8 CRITERIA = "This test is a benchmark." 9 TIME = "LONG" 10 TEST_CATEGORY = "Benchmark" 11 TEST_CLASS = "power" 12 TEST_TYPE = "client" 13 14 DOC = """ 15 This test runs a load test consisting of cycling though web pages, playing 16 videos, etc. and measures battery power draw. The duration of this test is 17 determined by the seconds variable. 18 19 20 The following manual steps need to be performed on the device under test 21 before this test can be run: 22 - make sure that Ethernet cable is disconnected and WiFi is connected 23 - disconnect power cable 24 25 You are now ready to run the test. 26 """ 27 28 # TODO (bleung): Find a way to do automatic Facebook login for test account. 29 30 loop_time = 3600 31 loop_count = 16 32 33 job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count, 34 test_low_batt_p=3) 35