Home | History | Annotate | Download | only in power_LoadTest
      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 
      5 AUTHOR = "Chrome OS Team"
      6 NAME = "power_LoadTest.fast_gaia"
      7 PURPOSE = "Test health of power load test functionality."
      8 CRITERIA = "This test is a benchmark."
      9 TIME = "SHORT"
     10 TEST_CATEGORY = "Benchmark"
     11 TEST_CLASS = "power"
     12 TEST_TYPE = "client"
     13 
     14 DOC = """
     15 This test runs a load test consisting of cycling though web pages, playing
     16 videos, etc. and measures battery power draw. The duration of this test is
     17 determined by the loop_time * loop_count variables below.
     18 
     19 This control file is simply meant to stimulate the various aspects of the test
     20 to validate mechanics are in good health (login, external website access).
     21 
     22 It ignores whether wired access (check_network=False) or AC is
     23 connected(ac_ok=True).
     24 
     25 For reasons above and reduced runtime (3min) it will NOT produce valid power
     26 consumption results for the 60/20/10/10 load and therefore should NOT be used
     27 for any battery life estimations.
     28 """
     29 
     30 # TODO (bleung): Find a way to do automatic Facebook login for test account.
     31 # TODO (tbroch): Find way to not replicate all these parameters that are common
     32 # between this control file and the original
     33 loop_time = 180
     34 loop_count = 1
     35 
     36 job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count,
     37              test_low_batt_p=6, check_network=False, ac_ok=True,
     38              gaia_login=True, tag=NAME.split('.')[1])
     39