wlauto.workloads.youtube package

Module contents

class wlauto.workloads.youtube.Youtube(device, **kwargs)[source]

Bases: wlauto.common.android.workload.AndroidUxPerfWorkload

activity = ''
aliases = AC([])
artifacts = AC([])
core_modules = []
deployable_assets = []
description = "\n A workload to perform standard productivity tasks within YouTube.\n\n The workload plays a video from the app, determined by the ``video_source`` parameter.\n While the video is playing, a some common actions are done such as video seeking, pausing\n playback and navigating the comments section.\n\n Test description:\n The ``video_source`` parameter determines where the video to be played will be found\n in the app. Possible values are ``search``, ``home``, ``my_videos``, and ``trending``.\n\n -A. search - Goes to the search view, does a search for the given term, and plays the\n first video in the results. The parameter ``search_term`` must also be provided\n in the agenda for this to work. This is the default mode.\n -B. home - Scrolls down once on the app's home page to avoid ads (if present, would be\n first video), then select and plays the video that appears at the top of the list.\n -C. my_videos - Goes to the 'My Videos' section of the user's account page and plays a\n video from there. The user must have at least one uploaded video for this to work.\n -D. trending - Goes to the 'Trending Videos' section of the app, and plays the first\n video in the trending videos list.\n\n For the selected video source, the following test steps are performed:\n\n 1. Navigate to the general app settings page to disable autoplay. This improves test\n stability and predictability by preventing screen transition to load a new video\n while in the middle of the test.\n 2. Select the video from the source specified above, and dismiss any potential embedded\n advert that may pop-up before the actual video.\n 3. Let the video play for a few seconds, pause it, then resume.\n 4. Expand the info card that shows video metadata, then collapse it again.\n 5. Scroll down to the end of related videos and comments under the info card, and then\n back up to the start. A maximum of 5 swipe actions is performed in either direction.\n\n Known working APK version: 11.19.56\n "
finalize(*args, **kwargs)
initialize(*args, **kwargs)
kind = 'workload'
name = 'youtube'
package = 'com.google.android.youtube'
parameters = AC(["Param({'kind': <type 'list'>, 'mandatory': None, 'name': 'modules', 'constraint': None, 'default': None, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function integer>, 'mandatory': None, 'name': 'install_timeout', 'constraint': None, 'default': 300, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'check_apk', 'constraint': None, 'default': True, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'force_install', 'constraint': None, 'default': False, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'uninstall_apk', 'constraint': None, 'default': False, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'exact_abi', 'constraint': None, 'default': False, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'clear_data_on_reset', 'constraint': None, 'default': True, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'markers_enabled', 'constraint': None, 'default': False, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'clean_assets', 'constraint': None, 'default': False, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'force_push_assets', 'constraint': None, 'default': False, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <type 'str'>, 'mandatory': None, 'name': 'video_source', 'constraint': None, 'default': 'search', 'allowed_values': ['home', 'my_videos', 'search', 'trending'], 'global_alias': None, 'override': False})", "Param({'kind': <type 'str'>, 'mandatory': None, 'name': 'search_term', 'constraint': None, 'default': 'Big Buck Bunny 60fps 4K - Official Blender Foundation Short Film', 'allowed_values': None, 'global_alias': None, 'override': False})"])
requires_network = True
validate(*args, **kwargs)
view = ['com.google.android.youtube/com.google.android.apps.youtube.app.WatchWhileActivity', 'com.google.android.youtube/com.google.android.apps.youtube.app.honeycomb.SettingsActivity']