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

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: 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
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..c5f87a621fec98787240c46a5e8c9f470c49cafa 100755
--- a/client/site_tests/power_LoadTest/control
+++ b/client/site_tests/power_LoadTest/control
@@ -32,5 +32,25 @@ 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:
+# single;<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.
+# 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.
+#
+# Duration and delay are given in minutes. The tasks are sequential. So if
+# task0.duration=30 and task1.duration=20, task0 will run for 30 minutes,
+# 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.
+#
+# Example:
+# tasks='repeat;www.facebook.com,www.google.com,www.yahoo.com;20,1 &' +
+# 'single;www.bing.com,www.gmail.com,www.amazon.com,www.ask.com;5 &' +
+# 'repeat;www.youtube.com,www.microsoft.com;15,4 &' +
+# '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.
+
job.run_test('power_LoadTest', loop_time=loop_time, loop_count=loop_count,
low_battery_threshold=3)

Powered by Google App Engine
This is Rietveld 408576698