xref: /aosp_15_r20/external/autotest/client/site_tests/power_LoadTest/control.fast_gaia (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright (c) 2016 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.fast_gaia"
7PURPOSE = "Test health of power load test functionality."
8CRITERIA = "This test is a benchmark."
9TIME = "MEDIUM"
10TEST_CATEGORY = "Benchmark"
11TEST_CLASS = "power"
12TEST_TYPE = "client"
13ATTRIBUTES = "suite:power_build"
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 loop_time * loop_count variables below.
20
21This control file is simply meant to stimulate the various aspects of the test
22to validate mechanics are in good health (login, external website access).
23
24It ignores whether wired access (check_network=False) or AC is
25connected(ac_ok=True).
26
27For reasons above and reduced runtime (3min) it will NOT produce valid power
28consumption results for the 60/20/10/10 load and therefore should NOT be used
29for any battery life estimations.
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 = 180
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, check_network=False, ac_ok=True,
42             gaia_login=True, tag=NAME.split('.')[1], pdash_note=pdash_note)
43