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

Unified 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: More cleanups 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/site_tests/power_LoadTest/extension.crx » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/power_LoadTest/control
diff --git a/client/site_tests/power_LoadTest/control b/client/site_tests/power_LoadTest/control
index 4b05c1e0354f9836136de77be3c729e1ca4327de..3ef1245e87e7afb5d85ca8b83c7920668527fe72 100755
--- a/client/site_tests/power_LoadTest/control
+++ b/client/site_tests/power_LoadTest/control
@@ -32,5 +32,29 @@ import time
loop_time = 3600
loop_count = 11
+# To specify a list of custom tasks, pass in the task parameter:
+# tasks='<task0> + <task1> + <task2> + ...'
+#
+# Task format:
+# - Open a window with some tabs, keep them open for some time:
+# window;<comma-delimited urls>;<duration>
+# - Cycle through a list of sites one at a time, for a total duration, and a
+# given delay on each site.
+# cycle;<comma-delimited urls>;<duration>;<delay>
+#
+# Duration and delay are given in seconds. The tasks are sequential. So if
+# task0.duration=1800 and task1.duration=1200, task0 will run for 30 minutes,
+# followed by task1 for 20 minutes, for a total of 50 minutes.
+#
+# Example: Use the 'tasks' string below. Pass 'tasks=tasks' as an argument into
+# job.run_test().
+
+tasks='cycle;http://www.facebook.com,http://www.google.com,http://www.yahoo' + \
+ '.com;900;60 +' + \
+ 'window;http://www.bing.com,http://www.gmail.com,http://www.amazon.co' + \
+ 'm,http://www.ask.com;600 +' + \
+ 'cycle;http://www.youtube.com,http://www.microsoft.com;900;240 +' + \
+ 'window;http://www.wikipedia.org;1200'
+
job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count,
low_battery_threshold=3)
« 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