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
5 from telemetry
.page
import shared_page_state
6 from telemetry
import story
8 from page_sets
import top_pages
11 class Top25PageSet(story
.StorySet
):
13 """ Page set consists of top 25 pages with only navigation actions. """
16 super(Top25PageSet
, self
).__init
__(
17 archive_data_file
='data/top_25.json',
18 cloud_storage_bucket
=story
.PARTNER_BUCKET
)
20 shared_desktop_state
= shared_page_state
.SharedDesktopPageState
21 self
.AddStory(top_pages
.GoogleWebSearchPage(self
, shared_desktop_state
))
22 self
.AddStory(top_pages
.GmailPage(self
, shared_desktop_state
))
23 self
.AddStory(top_pages
.GoogleCalendarPage(self
, shared_desktop_state
))
25 top_pages
.GoogleImageSearchPage(self
, shared_desktop_state
))
26 self
.AddStory(top_pages
.GoogleDocPage(self
, shared_desktop_state
))
27 self
.AddStory(top_pages
.GooglePlusPage(self
, shared_desktop_state
))
28 self
.AddStory(top_pages
.YoutubePage(self
, shared_desktop_state
))
29 self
.AddStory(top_pages
.BlogspotPage(self
, shared_desktop_state
))
30 self
.AddStory(top_pages
.WordpressPage(self
, shared_desktop_state
))
31 self
.AddStory(top_pages
.FacebookPage(self
, shared_desktop_state
))
32 self
.AddStory(top_pages
.LinkedinPage(self
, shared_desktop_state
))
33 self
.AddStory(top_pages
.WikipediaPage(self
, shared_desktop_state
))
34 self
.AddStory(top_pages
.TwitterPage(self
, shared_desktop_state
))
35 self
.AddStory(top_pages
.PinterestPage(self
, shared_desktop_state
))
36 self
.AddStory(top_pages
.ESPNPage(self
, shared_desktop_state
))
37 self
.AddStory(top_pages
.WeatherPage(self
, shared_desktop_state
))
38 self
.AddStory(top_pages
.YahooGamesPage(self
, shared_desktop_state
))
41 # Why: #1 news worldwide (Alexa global)
42 'http://news.yahoo.com',
43 # Why: #2 news worldwide
45 # Why: #1 world commerce website by visits; #3 commerce in the US by
47 'http://www.amazon.com',
48 # Why: #1 commerce website by time spent by users in US
49 'http://www.ebay.com',
50 # Why: #1 Alexa recreation
52 # Why: #1 Alexa reference
53 'http://answers.yahoo.com',
54 # Why: #1 Alexa sports
55 'http://sports.yahoo.com/',
57 'http://techcrunch.com'
60 for url
in other_urls
:
62 page
.Page(url
, self
, shared_page_state_class
=shared_desktop_state
))