blob: e17fbcd0d5d133a77cb3f2bec978f80d236d2b04 [file] [log] [blame]
# 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 shared_page_state
from telemetry import story
class AndroidAcceptancePage(page_module.Page):
def __init__(self, url, page_set, name=''):
super(AndroidAcceptancePage, self).__init__(
url=url, page_set=page_set, name=name,
# Android acceptance uses desktop.
shared_page_state_class=shared_page_state.SharedDesktopPageState,
credentials_path = 'data/credentials.json')
self.archive_data_file = 'data/android_acceptance.json'
def RunPageInteractions(self, action_runner):
action_runner.Wait(40)
class AndroidAcceptancePageSet(story.StorySet):
""" Pages used in android acceptance testing. """
def __init__(self):
super(AndroidAcceptancePageSet, self).__init__(
archive_data_file='data/android_acceptance.json',
cloud_storage_bucket=story.PARTNER_BUCKET)
urls_list = [
'http://www.amazon.com',
'http://www.cnn.com',
'http://www.msn.com',
]
for url in urls_list:
self.AddStory(AndroidAcceptancePage(url, self))