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

Side by Side Diff: tools/perf/page_sets/android_acceptance.py

Issue 654263005: Add android acceptance test to telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: redid pageset recording Created 6 years, 2 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 | « tools/perf/measurements/power.py ('k') | tools/perf/page_sets/data/android_acceptance.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
6
7
8 class AndroidAcceptancePage(page_module.Page):
9
10 def __init__(self, url, page_set, name=''):
11 super(AndroidAcceptancePage, self).__init__(
12 url=url, page_set=page_set, name=name,
13 credentials_path = 'data/credentials.json')
14 self.user_agent_type = 'desktop'
15 self.archive_data_file = 'data/android_acceptance.json'
16
17 def RunPowerPageInteractions(self, action_runner):
18 action_runner.Wait(40)
19
20
21 class AndroidAcceptancePageSet(page_set_module.PageSet):
22
23 """ Pages used in android acceptance testing. """
24
25 def __init__(self):
26 super(AndroidAcceptancePageSet, self).__init__(
27 user_agent_type='desktop', # Android acceptance uses desktop.
28 archive_data_file='data/android_acceptance.json',
29 bucket=page_set_module.PARTNER_BUCKET)
30
31 urls_list = [
32 'http://www.amazon.com',
33 'http://www.cnn.com',
34 'http://www.msn.com',
35 ]
36
37 for url in urls_list:
38 self.AddPage(AndroidAcceptancePage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/measurements/power.py ('k') | tools/perf/page_sets/data/android_acceptance.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698