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

Side by Side Diff: client/site_tests/power_LoadTest/extension/urls.js

Issue 669230: Update Power Test to be 60/20/10 test. (Closed)
Patch Set: Fix issues pointed out by snanda and petkov Created 10 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 unified diff | Download patch
« no previous file with comments | « client/site_tests/power_LoadTest/extension/params.js ('k') | no next file » | 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) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 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 // List of tasks to accomplish 5 // List of tasks to accomplish
6 var URLS = new Array(); 6 var URLS = new Array();
7 7
8 var ViewGDoc = ('http://docs.google.com/RawDocContents?action=fetch&' +
9 'justBody=false&revision=_latest&editMode=true&docID=');
10
8 var tasks = [ 11 var tasks = [
9 { 12 {
10 // Chrome browser window 1. This window remains open for the entire test. 13 // Chrome browser window 1. This window remains open for the entire test.
11 'type': 'window', 14 'type': 'window',
12 start: 0, 15 start: 0,
13 duration: 60 * 60 * 1000, 16 duration: 60 * 60 * 1000,
14 tabs: [ 17 tabs: [
15 'http://www.cnn.com', 18 'http://www.cnn.com',
16 'http://news.google.com', 19 'http://news.google.com',
17 'http://finance.yahoo.com', 20 'http://finance.yahoo.com',
18 'http://clothing.shop.ebay.com/Womens-Shoes-/63889/i.html', 21 'http://clothing.shop.ebay.com/Womens-Shoes-/63889/i.html',
19 'http://www.facebook.com' 22 'http://www.facebook.com'
20 ] 23 ]
21 }, 24 },
22 { 25 {
23 // Chrome browser window 2. This window remains open for the entire test. 26 // Page cycle through popular external websites for 36 minutes
24 type: 'window', 27 type: 'cycle',
28 name: 'web',
25 start: 0, 29 start: 0,
26 duration: 60 * 60 * 1000, 30 duration: 36 * 60 * 1000,
27 tabs: [ 31 delay: 60 * 1000, // A minute on each page
28 'http://gmail.com', 32 timeout: 5 * 1000,
29 'http://calendar.google.com', 33 focus: true,
30 'http://docs.google.com', 34 urls: URLS,
31 'https://docs.google.com/a/google.com/Doc?id=dg29khk6_134c5vjscf2' 35 },
36 {
37 // After 36 minutes, actively read e-mail for 12 minutes
38 type: 'cycle',
39 name: 'email',
40 start: 36 * 60 * 1000,
41 duration: 12 * 60 * 1000,
42 delay: 60 * 1000, // A minute on each page
43 timeout: 5 * 1000,
44 focus: true,
45 urls: [
46 'http://gmail.com',
47 'http://mail.google.com'
48 ],
49 },
50 {
51 // After 36 minutes, start streaming audio (background tab), total playtime
52 // 12 minutes
53 type: 'cycle',
54 name: 'audio',
55 start: 36 * 60 * 1000,
56 duration: 12 * 60 * 1000,
57 delay: 12 * 60 * 1000,
58 timeout: 5 * 1000,
59 focus: false,
60 urls: [
61 'http://www.bbc.co.uk/iplayer/console/worldservice/',
62 'http://www.npr.org/templates/player/mediaPlayer.html?action=3&t=live1',
63 'http://www.cbc.ca/radio2/channels/popup.html?stream=classical'
32 ] 64 ]
33 }, 65 },
34 { 66 {
35 // Page cycle through popular external websites for 48 minutes 67 // After 48 minutes, play with Google Docs for 6 minutes
36 type: 'cycle', 68 type: 'cycle',
37 start: 0, 69 name: 'docs',
38 duration: 48 * 60 * 1000, 70 start: 48 * 60 * 1000,
71 duration: 12 * 60 * 1000,
39 delay: 60 * 1000, // A minute on each page 72 delay: 60 * 1000, // A minute on each page
40 urls: URLS, 73 timeout: 5 * 1000,
74 focus: true,
75 urls: [
76 ViewGDoc + '0AaLGACl774zLZGRuYzlibWtfMXJzbmdoamcy',
77 ViewGDoc + '0AaLGACl774zLZGRuYzlibWtfMGRkcmY4emNu'
78 ],
41 }, 79 },
42 { 80 {
43 // After 48 minutes, watch Google IO for 6 minutes 81 // After 54 minutes, watch Google IO for 6 minutes
44 type: 'window', 82 type: 'window',
45 start: 48 * 60 * 1000, 83 name: 'video',
84 start: 54 * 60 * 1000,
46 duration: 6 * 60 * 1000, 85 duration: 6 * 60 * 1000,
86 focus: true,
47 tabs: [ 87 tabs: [
48 'http://www.youtube.com/watch_popup?v=ecI_hCBGEIM' 88 'http://www.youtube.com/watch_popup?v=ecI_hCBGEIM'
49 ] 89 ]
50 }, 90 },
51 {
52 // After 54 minutes, watch Star Trek for 6 minutes
53 type: 'window',
54 start: 54 * 60 * 1000,
55 duration: 6 * 60 * 1000,
56 tabs: [
57 'http://www.hulu.com/watch/128305/star-trek-vii-generations'
58 ],
59 }
60 ]; 91 ];
61 92
62 93
63 // List of URLs to cycle through 94 // List of URLs to cycle through
64 var u_index = 0; 95 var u_index = 0;
65 URLS[u_index++] = 'http://www.google.com'; 96 URLS[u_index++] = 'http://www.google.com';
66 URLS[u_index++] = 'http://www.yahoo.com'; 97 URLS[u_index++] = 'http://www.yahoo.com';
67 URLS[u_index++] = 'http://www.facebook.com'; 98 URLS[u_index++] = 'http://www.facebook.com';
68 URLS[u_index++] = 'http://www.youtube.com'; 99 URLS[u_index++] = 'http://www.youtube.com';
69 URLS[u_index++] = 'http://www.optimusid.com';
70 //URLS[u_index++] = 'http://www.kninc.net'; site no longer works
71 URLS[u_index++] = 'http://www.knowledgenetworks.com';
72 URLS[u_index++] = 'http://www.wikipedia.org'; 100 URLS[u_index++] = 'http://www.wikipedia.org';
73 URLS[u_index++] = 'http://www.amazon.com'; 101 URLS[u_index++] = 'http://www.amazon.com';
74 URLS[u_index++] = 'http://www.msn.com'; 102 URLS[u_index++] = 'http://www.msn.com';
75 URLS[u_index++] = 'http://www.optmd.com';
76 URLS[u_index++] = 'http://www.bing.com'; 103 URLS[u_index++] = 'http://www.bing.com';
77 URLS[u_index++] = 'http://www.blogspot.com'; 104 URLS[u_index++] = 'http://www.blogspot.com';
78 URLS[u_index++] = 'http://www.microsoft.com'; 105 URLS[u_index++] = 'http://www.microsoft.com';
79 URLS[u_index++] = 'http://www.myspace.com'; 106 URLS[u_index++] = 'http://www.myspace.com';
80 URLS[u_index++] = 'http://www.go.com'; 107 URLS[u_index++] = 'http://www.go.com';
81 URLS[u_index++] = 'http://www.knowledgepanel.com';
82 URLS[u_index++] = 'http://www.walmart.com'; 108 URLS[u_index++] = 'http://www.walmart.com';
83 URLS[u_index++] = 'http://www.about.com'; 109 URLS[u_index++] = 'http://www.about.com';
84 URLS[u_index++] = 'http://www.target.com'; 110 URLS[u_index++] = 'http://www.target.com';
85 URLS[u_index++] = 'http://www.aol.com'; 111 URLS[u_index++] = 'http://www.aol.com';
86 URLS[u_index++] = 'http://www.doubleclick.net';
87 URLS[u_index++] = 'http://www.mapquest.com'; 112 URLS[u_index++] = 'http://www.mapquest.com';
88 URLS[u_index++] = 'http://www.ask.com'; 113 URLS[u_index++] = 'http://www.ask.com';
89 URLS[u_index++] = 'http://www.craigslist.org'; 114 URLS[u_index++] = 'http://www.craigslist.org';
90 URLS[u_index++] = 'http://www.wordpress.com'; 115 URLS[u_index++] = 'http://www.wordpress.com';
91 URLS[u_index++] = 'http://www.answers.com'; 116 URLS[u_index++] = 'http://www.answers.com';
92 URLS[u_index++] = 'http://www.paypal.com'; 117 URLS[u_index++] = 'http://www.paypal.com';
93 URLS[u_index++] = 'http://www.imdb.com'; 118 URLS[u_index++] = 'http://www.imdb.com';
94 URLS[u_index++] = 'http://www.bestbuy.com'; 119 URLS[u_index++] = 'http://www.bestbuy.com';
95 URLS[u_index++] = 'http://www.ehow.com'; 120 URLS[u_index++] = 'http://www.ehow.com';
96 URLS[u_index++] = 'http://www.photobucket.com'; 121 URLS[u_index++] = 'http://www.photobucket.com';
97 URLS[u_index++] = 'http://www.cnn.com'; 122 URLS[u_index++] = 'http://www.cnn.com';
98 URLS[u_index++] = 'http://www.mozilla.com';
99 URLS[u_index++] = 'http://www.chase.com'; 123 URLS[u_index++] = 'http://www.chase.com';
100 URLS[u_index++] = 'http://www.att.com'; 124 URLS[u_index++] = 'http://www.att.com';
101 URLS[u_index++] = 'http://www.sears.com'; 125 URLS[u_index++] = 'http://www.sears.com';
102 URLS[u_index++] = 'http://www.weather.com'; 126 URLS[u_index++] = 'http://www.weather.com';
103 URLS[u_index++] = 'http://www.apple.com'; 127 URLS[u_index++] = 'http://www.apple.com';
104 URLS[u_index++] = 'http://www.zynga.com'; 128 URLS[u_index++] = 'http://www.zynga.com';
105 URLS[u_index++] = 'http://www.adobe.com'; 129 URLS[u_index++] = 'http://www.adobe.com';
106 URLS[u_index++] = 'http://www.bankofamerica.com'; 130 URLS[u_index++] = 'http://www.bankofamerica.com';
107 URLS[u_index++] = 'http://www.zedo.com'; 131 URLS[u_index++] = 'http://www.zedo.com';
108 URLS[u_index++] = 'http://www.flickr.com'; 132 URLS[u_index++] = 'http://www.flickr.com';
109 URLS[u_index++] = 'http://www.shoplocal.com'; 133 URLS[u_index++] = 'http://www.shoplocal.com';
110 URLS[u_index++] = 'http://www.twitter.com'; 134 URLS[u_index++] = 'http://www.twitter.com';
111 URLS[u_index++] = 'http://www.cnet.com'; 135 URLS[u_index++] = 'http://www.cnet.com';
112 URLS[u_index++] = 'http://www.verizonwireless.com'; 136 URLS[u_index++] = 'http://www.verizonwireless.com';
113 URLS[u_index++] = 'http://www.kohls.com'; 137 URLS[u_index++] = 'http://www.kohls.com';
114 URLS[u_index++] = 'http://www.bizrate.com'; 138 URLS[u_index++] = 'http://www.bizrate.com';
115 URLS[u_index++] = 'http://www.jcpenney.com'; 139 URLS[u_index++] = 'http://www.jcpenney.com';
116 URLS[u_index++] = 'http://www.netflix.com'; 140 URLS[u_index++] = 'http://www.netflix.com';
117 URLS[u_index++] = 'http://www.fastclick.net'; 141 URLS[u_index++] = 'http://www.fastclick.net';
118 URLS[u_index++] = 'http://www.windows.com'; 142 URLS[u_index++] = 'http://www.windows.com';
119 URLS[u_index++] = 'http://www.questionmarket.com'; 143 URLS[u_index++] = 'http://www.questionmarket.com';
120 URLS[u_index++] = 'http://www.nytimes.com'; 144 URLS[u_index++] = 'http://www.nytimes.com';
121 URLS[u_index++] = 'http://www.toysrus.com'; 145 URLS[u_index++] = 'http://www.toysrus.com';
122 URLS[u_index++] = 'http://www.allrecipes.com'; 146 URLS[u_index++] = 'http://www.allrecipes.com';
123 URLS[u_index++] = 'http://www.overstock.com'; 147 URLS[u_index++] = 'http://www.overstock.com';
124 URLS[u_index++] = 'http://www.comacast.net'; 148 URLS[u_index++] = 'http://www.comcast.net';
125 149
OLDNEW
« no previous file with comments | « client/site_tests/power_LoadTest/extension/params.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698