Commit 63eac988 authored by Mythri A's avatar Mythri A Committed by Commit Bot

Add browse:chrome:newtab:2019 system health story

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

R=crouleau@chromium.org

Change-Id: Ied1ae9172e4a4edf705effdfa14cfb900b128dc1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1975721
Commit-Queue: Caleb Rouleau <crouleau@chromium.org>
Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#727260}
parent 1dec2926
......@@ -45,6 +45,7 @@ _DISABLED_TESTS = frozenset({
'system_health.memory_mobile/background:news:nytimes',
'system_health.memory_mobile/background:social:facebook',
'system_health.memory_mobile/background:search:google',
'system_health.memory_mobile/browse:chrome:newtab',
'system_health.memory_mobile/browse:chrome:omnibox',
'system_health.memory_mobile/browse:media:flickr_infinite_scroll'
'system_health.memory_mobile/browse:media:imgur'
......
......@@ -30,6 +30,9 @@
"browse:chrome:newtab": {
"DEFAULT": "system_health_mobile_056.wprgo"
},
"browse:chrome:newtab:2019": {
"DEFAULT": "system_health_mobile_1bc8137e59.wprgo"
},
"browse:chrome:omnibox": {
"DEFAULT": "system_health_mobile_056.wprgo"
},
......
1bc8137e59c5766d9f26282fc2bcc56ca44e5c95
\ No newline at end of file
......@@ -121,3 +121,38 @@ class MobileNewTabPageStory(system_health_story.SystemHealthStory):
app_ui.WaitForUiNode(resource_id='menu_button').Tap()
app_ui.WaitForUiNode(content_desc='New tab')
class MobileNewTabPageStory2019(system_health_story.SystemHealthStory):
"""Story that loads new tab page and performs searches.
Given a list of typical search queries, this story does for each of them:
- enter the search query on the new tab page search box
- read results
- navigates back to new tab page
"""
NAME = 'browse:chrome:newtab:2019'
URL = 'chrome://newtab'
_SEARCH_TEXTS = ['does google know everything',
'most famous paintings',
'current weather',
'best movies 2019',
'how to tie a tie']
SUPPORTED_PLATFORMS = platforms.MOBILE_ONLY
TAGS = [story_tags.EMERGING_MARKET, story_tags.YEAR_2019]
# WebView has no tabs, so this story is not supported there.
WEBVIEW_NOT_SUPPORTED = True
def _DidLoadDocument(self, action_runner):
app_ui = action_runner.tab.browser.GetAppUi()
platform = action_runner.tab.browser.platform
for keyword in self._SEARCH_TEXTS:
app_ui.WaitForUiNode(resource_id='search_box').Tap()
platform.android_action_runner.InputText(keyword)
platform.android_action_runner.InputKeyEvent(keyevent.KEYCODE_ENTER)
action_runner.WaitForNavigate()
action_runner.Wait(1.5) # Read results
action_runner.ScrollPage(use_touch=True)
action_runner.NavigateBack()
action_runner.WaitForNavigate()
......@@ -11,6 +11,7 @@ background:social:facebook,,mobile,2016
background:social:facebook:2019,,mobile,2019
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:2019,Story that loads new tab page and performs searches.,mobile,"2019,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"
......
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