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