[Andriod] Fixes monkey command line
Adds example, usage, and changes default activity name to use the ContentShell activity. NOTRY=True BUG= Review URL: https://chromiumcodereview.appspot.com/22456003 git-svn-id: http://src.chromium.org/svn/trunk/src/build@216501 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
34a25c6665
Коммит
7b625b79ab
|
@ -357,16 +357,22 @@ def ProcessUIAutomatorOptions(options, error_func):
|
||||||
|
|
||||||
def AddMonkeyTestOptions(option_parser):
|
def AddMonkeyTestOptions(option_parser):
|
||||||
"""Adds monkey test options to |option_parser|."""
|
"""Adds monkey test options to |option_parser|."""
|
||||||
|
|
||||||
|
option_parser.usage = '%prog monkey [options]'
|
||||||
|
option_parser.command_list = []
|
||||||
|
option_parser.example = (
|
||||||
|
'%prog monkey --package-name=org.chromium.content_shell_apk'
|
||||||
|
' --activity-name=.ContentShellActivity')
|
||||||
|
|
||||||
option_parser.add_option('--package-name', help='Allowed package.')
|
option_parser.add_option('--package-name', help='Allowed package.')
|
||||||
option_parser.add_option(
|
option_parser.add_option(
|
||||||
'--activity-name', default='com.google.android.apps.chrome.Main',
|
'--activity-name', help='Name of the activity to start.')
|
||||||
help='Name of the activity to start [default: %default].')
|
|
||||||
option_parser.add_option(
|
option_parser.add_option(
|
||||||
'--event-count', default=10000, type='int',
|
'--event-count', default=10000, type='int',
|
||||||
help='Number of events to generate [default: %default].')
|
help='Number of events to generate [default: %default].')
|
||||||
option_parser.add_option(
|
option_parser.add_option(
|
||||||
'--category', default='',
|
'--category', default='',
|
||||||
help='A list of allowed categories [default: %default].')
|
help='A list of allowed categories.')
|
||||||
option_parser.add_option(
|
option_parser.add_option(
|
||||||
'--throttle', default=100, type='int',
|
'--throttle', default=100, type='int',
|
||||||
help='Delay between events (ms) [default: %default]. ')
|
help='Delay between events (ms) [default: %default]. ')
|
||||||
|
|
Загрузка…
Ссылка в новой задаче