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

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

Issue 6675052: power_LoadTest: Add parameter for custom tasks (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Created 9 years, 8 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 | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2011 The Chromium OS Authors. All rights reserved. 1 # Copyright (c) 2011 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"
(...skipping 14 matching lines...) Expand all
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 login for test account. 28 # TODO (bleung): Find a way to do automatic Facebook login for test account.
29 29
30 import time 30 import time
31 31
32 loop_time = 3600 32 loop_time = 3600
33 loop_count = 11 33 loop_count = 11
34 34
35 # To specify a list of custom tasks, pass in the task parameter:
36 # tasks='<task0>&<task1>&<task2>&...'
37 #
38 # Task format:
39 # - Open a window with some tabs, keep them open for some time:
40 # single;<comma-delimited urls>;<duration>
41 # - Cycle through a list of sites one at a time, for a total duration, and a
42 # given delay on each site.
43 # repeat;<comma-delimited urls>;<duration>;<delay>
Sameer Nanda 2011/03/31 23:42:22 "cycle" instead of "repeat" to match up with rest
Simon Que 2011/04/01 21:37:15 Done. Also single -> window.
44 #
45 # Duration and delay are given in minutes. The tasks are sequential. So if
46 # task0.duration=30 and task1.duration=20, task0 will run for 30 minutes,
47 # followed by task1 for 20 minutes, for a total of 50 minutes.
Sameer Nanda 2011/03/31 23:42:22 lets change the units of duration to seconds inste
Simon Que 2011/04/01 21:37:15 Done.
48 #
49 # Example:
50 # tasks='repeat;www.facebook.com,www.google.com,www.yahoo.com;20,1 &' +
51 # 'single;www.bing.com,www.gmail.com,www.amazon.com,www.ask.com;5 &' +
52 # 'repeat;www.youtube.com,www.microsoft.com;15,4 &' +
53 # 'single;www.wikipedia.org;20'
Sameer Nanda 2011/03/31 23:42:22 which of these would be in the foreground, ie, can
Simon Que 2011/04/01 21:37:15 No they can't. They are currently all sequential.
Sameer Nanda 2011/04/04 16:39:34 Yes, lets do this in a subsequent patch.
54
35 job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count, 55 job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count,
36 low_battery_threshold=3) 56 low_battery_threshold=3)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698