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 page_set
7 from page_sets
import top_pages
10 class Top25PageSet(page_set
.PageSet
):
12 """ Page set consists of top 25 pages with only navigation actions. """
15 super(Top25PageSet
, self
).__init
__(
16 user_agent_type
='desktop',
17 archive_data_file
='data/top_25.json',
18 bucket
=page_set
.PARTNER_BUCKET
)
20 self
.AddUserStory(top_pages
.GoogleWebSearchPage(self
))
21 self
.AddUserStory(top_pages
.GmailPage(self
))
22 self
.AddUserStory(top_pages
.GoogleCalendarPage(self
))
23 self
.AddUserStory(top_pages
.GoogleImageSearchPage(self
))
24 self
.AddUserStory(top_pages
.GoogleDocPage(self
))
25 self
.AddUserStory(top_pages
.GooglePlusPage(self
))
26 self
.AddUserStory(top_pages
.YoutubePage(self
))
27 self
.AddUserStory(top_pages
.BlogspotPage(self
))
28 self
.AddUserStory(top_pages
.WordpressPage(self
))
29 self
.AddUserStory(top_pages
.FacebookPage(self
))
30 self
.AddUserStory(top_pages
.LinkedinPage(self
))
31 self
.AddUserStory(top_pages
.WikipediaPage(self
))
32 self
.AddUserStory(top_pages
.TwitterPage(self
))
33 self
.AddUserStory(top_pages
.PinterestPage(self
))
34 self
.AddUserStory(top_pages
.ESPNPage(self
))
35 self
.AddUserStory(top_pages
.WeatherPage(self
))
36 self
.AddUserStory(top_pages
.YahooGamesPage(self
))
39 # Why: #1 news worldwide (Alexa global)
40 'http://news.yahoo.com',
41 # Why: #2 news worldwide
43 # Why: #1 world commerce website by visits; #3 commerce in the US by
45 'http://www.amazon.com',
46 # Why: #1 commerce website by time spent by users in US
47 'http://www.ebay.com',
48 # Why: #1 Alexa recreation
50 # Why: #1 Alexa reference
51 'http://answers.yahoo.com',
52 # Why: #1 Alexa sports
53 'http://sports.yahoo.com/',
55 'http://techcrunch.com'
58 for url
in other_urls
:
59 self
.AddUserStory(page
.Page(url
, self
))