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

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

Issue 6691048: power_LoadTest: custom tasks param allows for parallel tasks (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git
Patch Set: Rebased 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
« no previous file with comments | « no previous file | client/site_tests/power_LoadTest/extension.crx » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15 matching lines...) Expand all
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: 35 # To specify a list of custom tasks, pass in the task parameter:
36 # tasks='<task0> + <task1> + <task2> + ...' 36 # tasks='<task00>&<task01>+<task10>&<task11>+<task20>&<task21>+...'
37 # 37 #
38 # Use '+' to link together tasks sequentially, and '&' to indicate tasks that
39 # should be run in parallel.
40
38 # Task format: 41 # Task format:
39 # - Open a window with some tabs, keep them open for some time: 42 # - Open a window with some tabs, keep them open for some time:
40 # window;<comma-delimited urls>;<duration> 43 # window;<comma-delimited urls>;<duration>
41 # - Cycle through a list of sites one at a time, for a total duration, and a 44 # - Cycle through a list of sites one at a time, for a total duration, and a
42 # given delay on each site. 45 # given delay on each site.
43 # cycle;<comma-delimited urls>;<duration>;<delay> 46 # cycle;<comma-delimited urls>;<duration>;<delay>
44 # 47 #
45 # Duration and delay are given in seconds. The tasks are sequential. So if 48 # Duration and delay are given in seconds. With sequential tasks, if
46 # task0.duration=1800 and task1.duration=1200, task0 will run for 30 minutes, 49 # task0.duration=1800 and task1.duration=1200, task0 will run for 30 minutes,
47 # followed by task1 for 20 minutes, for a total of 50 minutes. 50 # followed by task1 for 20 minutes, for a total of 50 minutes.
48 # 51 #
49 # Example: Use the 'tasks' string below. Pass 'tasks=tasks' as an argument into 52 # Example: Use the 'tasks' string below. Pass 'tasks=tasks' as an argument into
50 # job.run_test(). 53 # job.run_test().
51 54
52 tasks='cycle;http://www.facebook.com,http://www.google.com,http://www.yahoo' + \ 55 tasks='window;http://www.cnn.com,http://www.ebay.com,http://www.msn.com;900' + \
53 '.com;900;60 +' + \ 56 ' & ' + \
57 'cycle;http://www.facebook.com,http://www.google.com,http://www.yahoo' + \
58 '.com;900;60 + ' + \
54 'window;http://www.bing.com,http://www.gmail.com,http://www.amazon.co' + \ 59 'window;http://www.bing.com,http://www.gmail.com,http://www.amazon.co' + \
55 'm,http://www.ask.com;600 +' + \ 60 'm,http://www.ask.com;600 + ' + \
56 'cycle;http://www.youtube.com,http://www.microsoft.com;900;240 +' + \ 61 'cycle;http://www.youtube.com,http://www.microsoft.com;900;240 + ' + \
57 'window;http://www.wikipedia.org;1200' 62 'window;http://www.wikipedia.org;1200 & ' + \
63 'window;http://www.alexa.com,http://www.intel.com,http://www.apple.co' + \
64 'm;1200'
58 65
59 job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count, 66 job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count,
60 low_battery_threshold=3) 67 low_battery_threshold=3)
OLDNEW
« no previous file with comments | « no previous file | client/site_tests/power_LoadTest/extension.crx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698