xref: /aosp_15_r20/external/autotest/client/site_tests/power_LoadTest/control.1hour (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
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 = "ChromeOS Team"
6NAME = "power_LoadTest.1hour"
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
14ATTRIBUTES = "suite:power_loadtest_1hour, suite:power_check, suite:power_monitoring"
15PY_VERSION = 3
16
17DOC = """
18This test runs a load test consisting of cycling though web pages, playing
19videos, etc. and measures battery power draw. The duration of this test is
20determined by the seconds variable.
21
22
23The following manual steps need to be performed on the device under test
24before this test can be run:
25  - make sure that Ethernet cable is disconnected and WiFi is connected
26  - disconnect power cable
27
28You are now ready to run the test.
29"""
30
31# TODO (bleung): Find a way to do automatic Facebook login for test account.
32# TODO (tbroch): Find way to not replicate all these parameters that are common
33# between this control file and the original
34loop_time = 3600
35loop_count = 1
36
37args_dict = utils.args_to_dict(args)
38pdash_note = args_dict.get('pdash_note', '')
39job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count,
40             test_low_batt_p=6, tag=NAME.split('.')[1], pdash_note=pdash_note)
41