public enum AndroidServerFlag extends Enum<AndroidServerFlag> implements ServerArgument
http://appium.io/slate/en/master/?ruby#appium-server-arguments
Android specific arguments are marked by (Android-only)Enum Constant and Description |
---|
ACTIVITY
Activity name for the Android activity you want to launch
from your package (e.g., MainActivity)
Sample: --app-activity MainActivity |
ANDROID_COVERAGE
Fully qualified instrumentation class.
|
APP_WAIT_ACTIVITY
Activity name for the Android activity you want to wait
for (e.g., SplashActivity)
Sample:
--app-wait-activity SplashActivity |
APP_WAIT_PACKAGE
Package name for the Android activity you want to wait for
(e.g., com.example.android.MyApp)
Sample: --app-wait-package com.example.android.MyApp |
AVD
Name of the avd to launch
Sample: --avd @default |
AVD_ARGS
Additional emulator arguments to launch the avd
Sample: --avd-args -no-snapshot-load |
BOOTSTRAP_PORT_NUMBER
Port to use on device to talk to Appium
Sample: --bootstrap-port 4724 |
DEVICE_READY_TIMEOUT
Timeout in seconds while waiting for device to become
ready
Sample: --device-ready-timeout 5 |
DO_NOT_STOP_APP_ON_RESET
When included, refrains from stopping the app before
restart
Default: false |
INTENT_ACTION
Intent action which will be used to start activity
Default: android.intent.action.MAIN Sample: --intent-action android.intent.action.MAIN |
INTENT_ARGUMENTS
Additional intent arguments that will be used to start
activity
Default: null Sample: --intent-args 0x10200000 |
INTENT_CATEGORY
Intent category which will be used to start activity
Default: android.intent.category.LAUNCHER Sample: --intent-category android.intent.category.APP_CONTACTS |
INTENT_FLAGS
Flags that will be used to start activity
Default: 0x10200000 Sample: --intent-flags 0x10200000 |
KEY_ALIAS
Key alias
Default: androiddebugkey |
KEY_PASSWORD
Key password
Default: android |
KEY_STORE_PASSWORD
Password to keystore
Default: android |
KEY_STORE_PATH
Path to keystore
Sample: --keystore-path /Users/user/.android/debug.keystore |
PACKAGE
Java package of the Android app you want to run (e.g.,
com.example.android.MyApp)
Sample: --app-pkg com.example.android.MyApp |
SELENDROID_PORT
Local port used for communication with Selendroid
Sample: --selendroid-port 8080 |
SUPPRESS_ADB_KILL_SERVER
If set, prevents Appium from killing the adb server
instance
Default: false |
USE_KEY_STORE
When set the keystore will be used to sign apks.
Default: false |
Modifier and Type | Method and Description |
---|---|
String |
getArgument() |
static AndroidServerFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AndroidServerFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AndroidServerFlag BOOTSTRAP_PORT_NUMBER
public static final AndroidServerFlag PACKAGE
public static final AndroidServerFlag ACTIVITY
public static final AndroidServerFlag APP_WAIT_PACKAGE
public static final AndroidServerFlag APP_WAIT_ACTIVITY
public static final AndroidServerFlag ANDROID_COVERAGE
public static final AndroidServerFlag AVD
public static final AndroidServerFlag AVD_ARGS
public static final AndroidServerFlag DEVICE_READY_TIMEOUT
public static final AndroidServerFlag SELENDROID_PORT
public static final AndroidServerFlag USE_KEY_STORE
public static final AndroidServerFlag KEY_STORE_PATH
public static final AndroidServerFlag KEY_STORE_PASSWORD
public static final AndroidServerFlag KEY_ALIAS
public static final AndroidServerFlag KEY_PASSWORD
public static final AndroidServerFlag INTENT_ACTION
public static final AndroidServerFlag INTENT_CATEGORY
public static final AndroidServerFlag INTENT_FLAGS
public static final AndroidServerFlag INTENT_ARGUMENTS
public static final AndroidServerFlag DO_NOT_STOP_APP_ON_RESET
public static final AndroidServerFlag SUPPRESS_ADB_KILL_SERVER
public static AndroidServerFlag[] values()
for (AndroidServerFlag c : AndroidServerFlag.values()) System.out.println(c);
public static AndroidServerFlag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getArgument()
getArgument
in interface ServerArgument
Copyright © 2015. All rights reserved.