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

Unified 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: changes based on comments 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 side-by-side diff with in-line comments
Download patch
Index: tools/perf/page_sets/android_acceptance.py
diff --git a/tools/perf/page_sets/android_acceptance.py b/tools/perf/page_sets/android_acceptance.py
new file mode 100644
index 0000000000000000000000000000000000000000..07d2f6c509feaa2038588a8e144227329b351391
--- /dev/null
+++ b/tools/perf/page_sets/android_acceptance.py
@@ -0,0 +1,38 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+from telemetry.page import page as page_module
+from telemetry.page import page_set as page_set_module
+
+
+class AndroidAcceptancePage(page_module.Page):
+
+ def __init__(self, url, page_set, name=''):
+ super(AndroidAcceptancePage, self).__init__(
+ url=url, page_set=page_set, name=name,
+ credentials_path = 'data/credentials.json')
+ self.user_agent_type = 'desktop'
+ self.archive_data_file = 'data/android_acceptance.json'
+
+ def RunPowerPageInteractions(self, action_runner):
+ action_runner.Wait(40)
+
+
+class AndroidAcceptancePageSet(page_set_module.PageSet):
+
+ """ Pages used in android acceptance testing. """
+
+ def __init__(self):
+ super(AndroidAcceptancePageSet, self).__init__(
+ user_agent_type='desktop', # Android acceptance uses desktop.
+ archive_data_file='data/android_acceptance.json',
+ bucket=page_set_module.PARTNER_BUCKET)
+
+ urls_list = [
+ 'http://www.amazon.com',
+ 'http://www.cnn.com',
+ 'http://www.msn.com',
+ ]
+
+ for url in urls_list:
+ self.AddPage(AndroidAcceptancePage(url, self))

Powered by Google App Engine
This is Rietveld 408576698