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

Side by Side Diff: tools/telemetry/examples/benchmarks/simple_story_set.py

Issue 1368533002: [Telemetry] Add an example for adding an end to end Telemetry benchmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
(Empty)
1 # Copyright 2015 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
5 from telemetry import story
6 from telemetry import page
7
8
9 class ExamplePage(page.Page):
10
11 def __init__(self, page_set):
12 super(ExamplePage, self).__init__(
13 url='https://www.example.com',
14 page_set=page_set)
15
16 def RunPageInteractions(self, action_runner):
17 action_runner.Wait(0.5)
18 with action_runner.CreateInteraction('Wait-One'):
19 action_runner.Wait(0.3)
eakuefner 2015/10/30 00:14:55 I think it might be good to showcase more of what
nednguyen 2015/10/30 16:29:56 Done.
20 action_runner.Wait(0.1)
21 with action_runner.CreateInteraction('Wait-Two'):
22 action_runner.Wait(0.3)
23
24
25 class SimpleStorySet(story.StorySet):
26 def __init__(self):
27 super(SimpleStorySet, self).__init__(
28 archive_data_file='data/simple_story_set.json',
29 cloud_storage_bucket=story.PARTNER_BUCKET)
30 self.AddStory(ExamplePage(self))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698