1# Copyright (c) 2012 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 5AUTHOR = "Chrome OS Team" 6NAME = "power_LoadTest.1hour" 7PURPOSE = "Measure power draw when system is under load." 8CRITERIA = "This test is a benchmark." 9TIME = "LONG" 10TEST_CATEGORY = "Benchmark" 11TEST_CLASS = "power" 12TEST_TYPE = "client" 13ATTRIBUTES = "suite:power_loadtest_1hour, suite:power_sanity, suite:power_monitoring" 14 15DOC = """ 16This test runs a load test consisting of cycling though web pages, playing 17videos, etc. and measures battery power draw. The duration of this test is 18determined by the seconds variable. 19 20 21The following manual steps need to be performed on the device under test 22before this test can be run: 23 - make sure that Ethernet cable is disconnected and WiFi is connected 24 - disconnect power cable 25 26You are now ready to run the test. 27""" 28 29# TODO (bleung): Find a way to do automatic Facebook login for test account. 30# TODO (tbroch): Find way to not replicate all these parameters that are common 31# between this control file and the original 32loop_time = 3600 33loop_count = 1 34 35args_dict = utils.args_to_dict(args) 36pdash_note = args_dict.get('pdash_note', '') 37job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count, 38 test_low_batt_p=6, tag=NAME.split('.')[1], pdash_note=pdash_note) 39