1# Copyright 2020 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_cellular" 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" 13 14DOC = """ 15This test runs a load test consisting of cycling though web pages, playing 16videos, etc. and measures battery power draw. The duration of this test is 17determined by the seconds variable. 18 19 20The following manual steps need to be performed on the device under test 21before this test can be run: 22 - make sure that Ethernet cable is disconnected and the cellular network 23 is connected 24 - disconnect power cable 25 26Currently this test can only be executed locally on the DUT, not remotely 27with 'test_that'. 28 29You are now ready to run the test. 30""" 31 32# TODO (bleung): Find a way to do automatic Facebook login for test account. 33# TODO (tbroch): Find way to not replicate all these parameters that are common 34# between this control file and the original 35loop_time = 3600 36loop_count = 1 37 38args_dict = utils.args_to_dict(args) 39pdash_note = args_dict.get('pdash_note', '') 40job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count, 41 test_low_batt_p=6, use_cellular_network=True, 42 tag=NAME.split('.')[1], pdash_note=pdash_note) 43