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

Issue 6675052: power_LoadTest: Add parameter for custom tasks (Closed)

Created:
9 years, 8 months ago by Simon Que
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, sosa+cc_chromium.org, seano+cc_chromium.org, ericli
Visibility:
Public.

Description

power_LoadTest: Add parameter for custom tasks Added a parameter, 'tasks', to power_LoadTest's control file that can override the default tasks in extension/urls.js with a custom set of tasks. Also fixed the way URL cycling delays are scaled in background.html. Previously, they were not scaled along with start and duration, based on time_ratio. Also created functions to convert time into milliseconds, to clean up code. BUG=chromium-os:13437 TEST=Run the example in the control file. Set loop_time to something low, like 120 seconds, and loop_count to 1, so the test doesn't run for an hour. Change-Id: I8187341934ceb1944f5c5cdb2ad9ddc64b9169fc Signed-off-by: Simon Que <sque@chromium.org>; Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=7868162

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fixed delay scaling, changed command names, cleanup #

Total comments: 4

Patch Set 3 : More cleanups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -26 lines) Patch
M client/site_tests/power_LoadTest/control View 1 1 chunk +24 lines, -0 lines 0 comments Download
M client/site_tests/power_LoadTest/extension.crx View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M client/site_tests/power_LoadTest/extension/background.html View 1 2 6 chunks +62 lines, -4 lines 0 comments Download
M client/site_tests/power_LoadTest/extension/params.js View 1 chunk +12 lines, -2 lines 0 comments Download
M client/site_tests/power_LoadTest/extension/testparams.js View 3 chunks +4 lines, -1 line 0 comments Download
M client/site_tests/power_LoadTest/extension/urls.js View 1 6 chunks +20 lines, -19 lines 0 comments Download
M client/site_tests/power_LoadTest/params.js View 1 chunk +1 line, -0 lines 0 comments Download
M client/site_tests/power_LoadTest/power_LoadTest.py View 3 chunks +3 lines, -1 line 0 comments Download
M client/site_tests/power_LoadTest/testparams.html View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Simon Que
9 years, 8 months ago (2011-03-30 17:59:39 UTC) #1
Sameer Nanda
Looking good for the most part. http://codereview.chromium.org/6675052/diff/1/client/site_tests/power_LoadTest/control File client/site_tests/power_LoadTest/control (right): http://codereview.chromium.org/6675052/diff/1/client/site_tests/power_LoadTest/control#newcode43 client/site_tests/power_LoadTest/control:43: # repeat;<comma-delimited urls>;<duration>;<delay> ...
9 years, 8 months ago (2011-03-31 23:42:21 UTC) #2
Simon Que
PTAL http://codereview.chromium.org/6675052/diff/1/client/site_tests/power_LoadTest/control File client/site_tests/power_LoadTest/control (right): http://codereview.chromium.org/6675052/diff/1/client/site_tests/power_LoadTest/control#newcode43 client/site_tests/power_LoadTest/control:43: # repeat;<comma-delimited urls>;<duration>;<delay> On 2011/03/31 23:42:22, Sameer Nanda ...
9 years, 8 months ago (2011-04-01 21:37:15 UTC) #3
Simon Que
http://codereview.chromium.org/6675052/diff/6001/client/site_tests/power_LoadTest/extension/background.html File client/site_tests/power_LoadTest/extension/background.html (right): http://codereview.chromium.org/6675052/diff/6001/client/site_tests/power_LoadTest/extension/background.html#newcode67 client/site_tests/power_LoadTest/extension/background.html:67: var task_strings = tasks_string.split('+'); Now using '+' instead of ...
9 years, 8 months ago (2011-04-01 21:48:33 UTC) #4
Sameer Nanda
9 years, 8 months ago (2011-04-04 16:39:34 UTC) #5
LGTM. Thanks!

http://codereview.chromium.org/6675052/diff/1/client/site_tests/power_LoadTes...
File client/site_tests/power_LoadTest/control (right):

http://codereview.chromium.org/6675052/diff/1/client/site_tests/power_LoadTes...
client/site_tests/power_LoadTest/control:53: #         
'single;www.wikipedia.org;20'
On 2011/04/01 21:37:15, Simon Que wrote:
> On 2011/03/31 23:42:22, Sameer Nanda wrote:
> > which of these would be in the foreground, ie, can the order of these tasks
be
> > used to control which window is in the foreground?
> 
> No they can't.  They are currently all sequential.  I can change the syntax so
> that background / foreground can be done in parallel.  e.g., A1 & A2 + B1 + C1
&
> C2:
> 
> 1. A1 and A2 in parallel
> 2. B1
> 3. C1 and C2 in parallel
> 
> This can be done in another patch.
Yes, lets do this in a subsequent patch.

Powered by Google App Engine
This is Rietveld 408576698