Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Side by Side Diff: client/site_tests/power_LoadTest/control

Issue 2844047: Modify power_LoadTest Extension to pull in test parameters. (Closed) Base URL: ssh://gitrw.chromium.org/autotest.git
Patch Set: Set 1 hour long test. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698