Commit 56b6e933 authored by Mythri A's avatar Mythri A Committed by Commit Bot

Add browse:chrome:omnibox:2019 system health story

This CL was created automatically with tools/perf/update_wpr script

R=crouleau@chromium.org

Change-Id: I40969058290445cafbf6159ee1c746f7cebbf620
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1971922
Commit-Queue: Mythri Alle <mythria@chromium.org>
Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#725927}
parent e5cdbff0
...@@ -43,6 +43,7 @@ _DISABLED_TESTS = frozenset({ ...@@ -43,6 +43,7 @@ _DISABLED_TESTS = frozenset({
# 2019 versions and will later be removed. # 2019 versions and will later be removed.
'system_health.memory_mobile/background:social:facebook', 'system_health.memory_mobile/background:social:facebook',
'system_health.memory_mobile/background:media:imgur', 'system_health.memory_mobile/background:media:imgur',
'system_health.memory_mobile/browse:chrome:omnibox',
'system_health.memory_mobile/browse:tech:discourse_infinite_scroll', 'system_health.memory_mobile/browse:tech:discourse_infinite_scroll',
'system_health.memory_mobile/browse:shopping:amazon', 'system_health.memory_mobile/browse:shopping:amazon',
'system_health.memory_mobile/browse:social:facebook_infinite_scroll', 'system_health.memory_mobile/browse:social:facebook_infinite_scroll',
......
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
"browse:chrome:omnibox": { "browse:chrome:omnibox": {
"DEFAULT": "system_health_mobile_056.wprgo" "DEFAULT": "system_health_mobile_056.wprgo"
}, },
"browse:chrome:omnibox:2019": {
"DEFAULT": "system_health_mobile_8de13d6bda.wprgo"
},
"browse:media:facebook_photos": { "browse:media:facebook_photos": {
"DEFAULT": "system_health_mobile_040.wprgo" "DEFAULT": "system_health_mobile_040.wprgo"
}, },
......
8de13d6bda9b81051ba42be7f4330cb1badb5aa8
\ No newline at end of file
...@@ -56,6 +56,34 @@ class SearchOmniboxStory(system_health_story.SystemHealthStory): ...@@ -56,6 +56,34 @@ class SearchOmniboxStory(system_health_story.SystemHealthStory):
action_runner.WaitForNavigate() action_runner.WaitForNavigate()
action_runner.ScrollPage(use_touch=True, distance=500) action_runner.ScrollPage(use_touch=True, distance=500)
class SearchOmniboxStory2019(system_health_story.SystemHealthStory):
"""Story that peforms search by using omnibox search provider
Loads a website and enters a search query on omnibox and navigates to default
search provider (google).
"""
NAME = 'browse:chrome:omnibox:2019'
URL = 'https://www.google.co.in'
SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
TAGS = [story_tags.EMERGING_MARKET, story_tags.YEAR_2019]
# WebView has no omnibox, so not supported.
WEBVIEW_NOT_SUPPORTED = True
def _DidLoadDocument(self, action_runner):
app_ui = action_runner.tab.browser.GetAppUi()
platform = action_runner.tab.browser.platform
app_ui.WaitForUiNode(resource_id='url_bar')
url_bar = app_ui.GetUiNode(resource_id='url_bar')
url_bar.Tap()
action_runner.Wait(1) # user wait before typing
platform.android_action_runner.InputText('drake')
action_runner.Wait(0.5) # user wait after typing
platform.android_action_runner.InputKeyEvent(keyevent.KEYCODE_ENTER)
action_runner.WaitForNavigate()
action_runner.ScrollPage(use_touch=True, distance=500)
class MobileNewTabPageStory(system_health_story.SystemHealthStory): class MobileNewTabPageStory(system_health_story.SystemHealthStory):
"""Story that loads new tab page and performs searches. """Story that loads new tab page and performs searches.
......
...@@ -10,6 +10,7 @@ background:social:facebook:2019,,mobile,2019 ...@@ -10,6 +10,7 @@ background:social:facebook:2019,,mobile,2019
background:tools:gmail,,mobile,"2016,health_check" background:tools:gmail,,mobile,"2016,health_check"
browse:chrome:newtab,Story that loads new tab page and performs searches.,mobile,"2016,emerging_market" browse:chrome:newtab,Story that loads new tab page and performs searches.,mobile,"2016,emerging_market"
browse:chrome:omnibox,Story that peforms search by using omnibox search provider,mobile,"2016,emerging_market" browse:chrome:omnibox,Story that peforms search by using omnibox search provider,mobile,"2016,emerging_market"
browse:chrome:omnibox:2019,Story that peforms search by using omnibox search provider,mobile,"2019,emerging_market"
browse:media:facebook_photos,Load a photo page from Rihanna's facebook page then navigate a few next,mobile,"2016,emerging_market" browse:media:facebook_photos,Load a photo page from Rihanna's facebook page then navigate a few next,mobile,"2016,emerging_market"
browse:media:flickr_infinite_scroll,,"desktop,mobile","2016,infinite_scroll" browse:media:flickr_infinite_scroll,,"desktop,mobile","2016,infinite_scroll"
browse:media:googleplaystore:2018,"Navigate to the movies page of Google Play Store, scroll to the bottom,",desktop,"2018,images" browse:media:googleplaystore:2018,"Navigate to the movies page of Google Play Store, scroll to the bottom,",desktop,"2018,images"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment