Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 AUTHOR = "Chrome OS Team" | 5 AUTHOR = "Chrome OS Team" |
| 6 NAME = "power_LoadTest" | 6 NAME = "power_LoadTest" |
| 7 PURPOSE = "Measure power draw when system is under load." | 7 PURPOSE = "Measure power draw when system is under load." |
| 8 CRITERIA = "This test is a benchmark." | 8 CRITERIA = "This test is a benchmark." |
| 9 TIME = "LONG" | 9 TIME = "LONG" |
| 10 TEST_CATEGORY = "Benchmark" | 10 TEST_CATEGORY = "Benchmark" |
| 11 TEST_CLASS = "power" | 11 TEST_CLASS = "power" |
| 12 TEST_TYPE = "client" | 12 TEST_TYPE = "client" |
| 13 | 13 |
| 14 DOC = """ | 14 DOC = """ |
| 15 This test runs a load test consisting of cycling though web pages, playing | 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 | 16 videos, etc. and measures battery power draw. The duration of this test is |
| 17 determined by the seconds variable. | 17 determined by the seconds variable. |
| 18 | 18 |
| 19 | 19 |
| 20 The following manual steps need to be performed on the device under test | 20 The following manual steps need to be performed on the device under test |
| 21 before this test can be run: | 21 before this test can be run: |
| 22 - make sure that Ethernet cable is disconnected and WiFi is connected | 22 - make sure that Ethernet cable is disconnected and WiFi is connected |
| 23 - disconnect power cable | 23 - disconnect power cable |
| 24 | 24 |
| 25 You are now ready to run the test. | 25 You are now ready to run the test. |
| 26 """ | 26 """ |
| 27 | 27 |
| 28 # TODO (bleung): Find a way to do automatic Facebook and Gmail login in | 28 # TODO (bleung): Find a way to do automatic Facebook in perf test account. |
|
Sameer Nanda
2011/02/28 22:11:34
typo: in -> login
Benson Leung
2011/03/01 02:16:19
Done.
| |
| 29 # perf test account. | |
| 30 # TODO (bleung): Seconds variable is used here, but is not in power_LoadTest | |
| 31 # because of the change to packed external extension. Change ext to take arg. | |
| 32 | |
| 33 | 29 |
| 34 import time | 30 import time |
| 35 | 31 |
| 36 loop_time = 3600 | 32 loop_time = 3600 |
| 37 loop_count = 9 | 33 loop_count = 9 |
| 38 | 34 |
| 39 job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count, | 35 job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count, |
| 40 low_battery_threshold=3) | 36 low_battery_threshold=3, |
| 37 creds='power.loadtest@gmail.com:power_LoadTest') | |
|
Sameer Nanda
2011/02/28 22:11:34
probably better to pick these creds up from a file
| |
| OLD | NEW |