wlauto.workloads.googleslides package

Module contents

class wlauto.workloads.googleslides.GoogleSlides(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 with Google Slides. The workload carries\n out various tasks, such as creating a new presentation, adding text, images, and shapes,\n as well as basic editing and playing a slideshow.\n This workload should be able to run without a network connection.\n\n There are two main scenarios:\n 1. create test: a presentation is created in-app and some editing done on it,\n 2. load test: a pre-existing PowerPoint file is copied onto the device for testing.\n\n --- create ---\n Create a new file in the application and perform basic editing on it. This test also\n requires an image file specified by the param ``test_image`` to be copied onto the device.\n\n Test description:\n\n 1. Start the app and skip the welcome screen. Dismiss the work offline banner if present.\n 2. Go to the app settings page and enables PowerPoint compatibility mode. This allows\n PowerPoint files to be created inside Google Slides.\n 3. Create a new PowerPoint presentation in the app (PPT compatibility mode) with a title\n slide and save it to device storage.\n 4. Insert another slide and to it insert the pushed image by picking it from the gallery.\n 5. Insert a final slide and add a shape to it. Resize and drag the shape to modify it.\n 6. Finally, navigate back to the documents list.\n\n --- load ---\n Copy a PowerPoint presentation onto the device to test slide navigation. The PowerPoint\n file to be copied is given by ``test_file``.\n\n Test description:\n\n 1. From the documents list (following the create test), open the specified PowerPoint\n by navigating into device storage and wait for it to be loaded.\n 2. A navigation test is performed while the file is in editing mode (i.e. not slideshow).\n swiping forward to the next slide until ``slide_count`` swipes are performed.\n 3. While still in editing mode, the same action is done in the reverse direction back to\n the first slide.\n 4. Enter presentation mode by selecting to play the slideshow.\n 5. Swipe forward to play the slideshow, for a maximum number of ``slide_count`` swipes.\n 6. Finally, repeat the previous step in the reverse direction while still in presentation\n mode, navigating back to the first slide.\n\n NOTE: There are known issues with the reliability of this workload on some targets.\n It MAY NOT ALWAYS WORK on your device. If you do run into problems, it might help to\n set ``do_text_entry`` parameter to ``False``.\n\n Known working APK version: 1.7.032.06\n '
finalize(*args, **kwargs)
initialize(*args, **kwargs)
kind = 'workload'
name = 'googleslides'
new_doc_name = 'WORKLOAD AUTOMATION'
package = 'com.google.android.apps.docs.editors.slides'
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': 'test_image', 'constraint': None, 'default': 'uxperf_1600x1200.jpg', 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <type 'str'>, 'mandatory': None, 'name': 'test_file', 'constraint': None, 'default': 'uxperf_test_doc.pptx', 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function integer>, 'mandatory': None, 'name': 'slide_count', 'constraint': None, 'default': 5, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'do_text_entry', 'constraint': None, 'default': True, 'allowed_values': None, 'global_alias': None, 'override': False})"])
teardown(context)[source]
validate(*args, **kwargs)
view = ['com.google.android.apps.docs.editors.slides/com.google.android.apps.docs.quickoffice.filepicker.FilePickerActivity', 'com.google.android.apps.docs.editors.slides/com.google.android.apps.docs.editors.shared.filepicker.FilePickerActivity', 'com.google.android.apps.docs.editors.slides/com.google.android.apps.docs.quickoffice.filepicker.LocalSaveAsActivity', 'com.google.android.apps.docs.editors.slides/com.qo.android.quickpoint.Quickpoint', 'com.google.android.apps.docs.editors.slides/com.google.android.apps.docs.app.DocsPreferencesActivity', 'com.google.android.apps.docs.editors.slides/com.google.android.apps.docs.app.DocListActivity', 'com.google.android.apps.docs.editors.slides/com.google.android.apps.docs.welcome.warmwelcome.TrackingWelcomeActivity', 'com.google.android.apps.docs.editors.slides/com.google.android.apps.docs.app.NewMainProxyActivity']