Appium -h

appium的帮助文档

➜  ~  appium -h
usage: appium [-h] [-v] [--shell]
              [--localizable-strings-dir LOCALIZABLESTRINGSDIR] [--app APP]
              [--ipa IPA] [-U UDID] [-a ADDRESS] [-p PORT]
              [-ca CALLBACKADDRESS] [-cp CALLBACKPORT] [-bp BOOTSTRAPPORT]
              [-k] [-r BACKENDRETRIES] [--session-override] [--full-reset]
              [--no-reset] [-l] [-lt LAUNCHTIMEOUT] [-g LOG]
              [--log-level {info,info:debug,info:info,info:warn,info:error,warn,warn:debug,warn:info,warn:warn,warn:error,error,error:debug,error:info,error:warn,error:error,debug,debug:debug,debug:info,debug:warn,debug:error}]
              [--log-timestamp] [--local-timezone] [--log-no-colors]
              [-G WEBHOOK] [--native-instruments-lib]
              [--app-pkg ANDROIDPACKAGE] [--app-activity ANDROIDACTIVITY]
              [--app-wait-package ANDROIDWAITPACKAGE]
              [--app-wait-activity ANDROIDWAITACTIVITY]
              [--android-coverage ANDROIDCOVERAGE] [--avd AVD]
              [--avd-args AVDARGS]
              [--device-ready-timeout ANDROIDDEVICEREADYTIMEOUT] [--safari]
              [--device-name DEVICENAME] [--platform-name PLATFORMNAME]
              [--platform-version PLATFORMVERSION]
              [--automation-name AUTOMATIONNAME] [--browser-name BROWSERNAME]
              [--default-device] [--force-iphone] [--force-ipad]
              [--language LANGUAGE] [--locale LOCALE]
              [--calendar-format CALENDARFORMAT] [--orientation ORIENTATION]
              [--tracetemplate AUTOMATIONTRACETEMPLATEPATH]
              [--instruments INSTRUMENTSPATH] [--show-sim-log]
              [--show-ios-log] [--nodeconfig NODECONFIG] [-ra ROBOTADDRESS]
              [-rp ROBOTPORT] [--selendroid-port SELENDROIDPORT]
              [--chromedriver-port CHROMEDRIVERPORT]
              [--chromedriver-executable CHROMEDRIVEREXECUTABLE]
              [--use-keystore] [--keystore-path KEYSTOREPATH]
              [--keystore-password KEYSTOREPASSWORD] [--key-alias KEYALIAS]
              [--key-password KEYPASSWORD] [--show-config] [--no-perms-check]
              [--command-timeout DEFAULTCOMMANDTIMEOUT] [--keep-keychains]
              [--strict-caps] [--isolate-sim-device] [--tmp TMPDIR]
              [--trace-dir TRACEDIR] [--intent-action INTENTACTION]
              [--intent-category INTENTCATEGORY] [--intent-flags INTENTFLAGS]
              [--intent-args OPTIONALINTENTARGUMENTS]
              [--dont-stop-app-on-reset] [--debug-log-spacing]
              [--suppress-adb-kill-server] [--async-trace]


A webdriver-compatible server for use with native and hybrid iOS and Android
applications.

Optional arguments:
  -h, --help            Show this help message and exit.
  -v, --version         Show program's version number and exit.
  --shell               Enter REPL mode
  --localizable-strings-dir LOCALIZABLESTRINGSDIR
                        IOS only: the relative path of the dir where
                        Localizable.strings file resides
  --app APP             IOS: abs path to simulator-compiled .app file or the
                        bundle_id of the desired target on device; Android:
                        abs path to .apk file
  --ipa IPA             (IOS-only) abs path to compiled .ipa file
  -U UDID, --udid UDID  Unique device identifier of the connected physical
                        device
  -a ADDRESS, --address ADDRESS
                        IP Address to listen on
  -p PORT, --port PORT  port to listen on
  -ca CALLBACKADDRESS, --callback-address CALLBACKADDRESS
                        callback IP Address (default: same as --address)
  -cp CALLBACKPORT, --callback-port CALLBACKPORT
                        callback port (default: same as port)
  -bp BOOTSTRAPPORT, --bootstrap-port BOOTSTRAPPORT
                        (Android-only) port to use on device to talk to Appium
  -k, --keep-artifacts  [DEPRECATED] no effect, trace is now in tmp dir by
                        default and is cleared before each run. Please also
                        refer to the --trace-dir flag.
  -r BACKENDRETRIES, --backend-retries BACKENDRETRIES
                        (iOS-only) How many times to retry launching
                        Instruments before saying it crashed or timed out
  --session-override    Enables session override (clobbering)
  --full-reset          (iOS) Delete the entire simulator folder. (Android)
                        Reset app state by uninstalling app instead of
                        clearing app data. On Android, this will also remove
                        the app after the session is complete.
  --no-reset            Don't reset app state between sessions (IOS: don't
                        delete app plist files; Android: don't uninstall app
                        before new session)
  -l, --pre-launch      Pre-launch the application before allowing the first
                        session (Requires --app and, for Android, --app-pkg
                        and --app-activity)
  -lt LAUNCHTIMEOUT, --launch-timeout LAUNCHTIMEOUT
                        (iOS-only) how long in ms to wait for Instruments to
                        launch
  -g LOG, --log LOG     Also send log output to this file
  --log-level {info,info:debug,info:info,info:warn,info:error,warn,warn:debug,warn:info,warn:warn,warn:error,error,error:debug,error:info,error:warn,error:error,debug,debug:debug,debug:info,debug:warn,debug:error}
                        log level; default (console[:file]): debug[:debug]
  --log-timestamp       Show timestamps in console output
  --local-timezone      Use local timezone for timestamps
  --log-no-colors       Don't use colors in console output
  -G WEBHOOK, --webhook WEBHOOK
                        Also send log output to this HTTP listener
  --native-instruments-lib
                        (IOS-only) IOS has a weird built-in unavoidable delay.
                         We patch this in appium. If you do not want it
                        patched, pass in this flag.
  --app-pkg ANDROIDPACKAGE
                        (Android-only) Java package of the Android app you
                        want to run (e.g., com.example.android.myApp)
  --app-activity ANDROIDACTIVITY
                        (Android-only) Activity name for the Android activity
                        you want to launch from your package (e.g.,
                        MainActivity)
  --app-wait-package ANDROIDWAITPACKAGE
                        (Android-only) Package name for the Android activity
                        you want to wait for (e.g., com.example.android.myApp)
  --app-wait-activity ANDROIDWAITACTIVITY
                        (Android-only) Activity name for the Android activity
                        you want to wait for (e.g., SplashActivity)
  --android-coverage ANDROIDCOVERAGE
                        (Android-only) Fully qualified instrumentation class.
                        Passed to -w in adb shell am instrument -e coverage
                        true -w
  --avd AVD             (Android-only) Name of the avd to launch
  --avd-args AVDARGS    (Android-only) Additional emulator arguments to
                        launch the avd
  --device-ready-timeout ANDROIDDEVICEREADYTIMEOUT
                        (Android-only) Timeout in seconds while waiting for
                        device to become ready
  --safari              (IOS-Only) Use the safari app
  --device-name DEVICENAME
                        Name of the mobile device to use
  --platform-name PLATFORMNAME
                        Name of the mobile platform: iOS, Android, or
                        FirefoxOS
  --platform-version PLATFORMVERSION
                        Version of the mobile platform
  --automation-name AUTOMATIONNAME
                        Name of the automation tool: Appium or Selendroid
  --browser-name BROWSERNAME
                        Name of the mobile browser: Safari or Chrome
  --default-device, -dd
                        (IOS-Simulator-only) use the default simulator that
                        instruments launches on its own
  --force-iphone        (IOS-only) Use the iPhone Simulator no matter what
                        the app wants
  --force-ipad          (IOS-only) Use the iPad Simulator no matter what the
                        app wants
  --language LANGUAGE   Language for the iOS simulator / Android Emulator
  --locale LOCALE       Locale for the iOS simulator / Android Emulator
  --calendar-format CALENDARFORMAT
                        (IOS-only) calendar format for the iOS simulator
  --orientation ORIENTATION
                        (IOS-only) use LANDSCAPE or PORTRAIT to initialize
                        all requests to this orientation
  --tracetemplate AUTOMATIONTRACETEMPLATEPATH
                        (IOS-only) .tracetemplate file to use with Instruments
  --instruments INSTRUMENTSPATH
                        (IOS-only) path to instruments binary
  --show-sim-log        (IOS-only) if set, the iOS simulator log will be
                        written to the console
  --show-ios-log        (IOS-only) if set, the iOS system log will be written
                        to the console
  --nodeconfig NODECONFIG
                        Configuration JSON file to register appium with
                        selenium grid
  -ra ROBOTADDRESS, --robot-address ROBOTADDRESS
                        IP Address of robot
  -rp ROBOTPORT, --robot-port ROBOTPORT
                        port for robot
  --selendroid-port SELENDROIDPORT
                        Local port used for communication with Selendroid
  --chromedriver-port CHROMEDRIVERPORT
                        Port upon which ChromeDriver will run
  --chromedriver-executable CHROMEDRIVEREXECUTABLE
                        ChromeDriver executable full path
  --use-keystore        (Android-only) When set the keystore will be used to
                        sign apks.
  --keystore-path KEYSTOREPATH
                        (Android-only) Path to keystore
  --keystore-password KEYSTOREPASSWORD
                        (Android-only) Password to keystore
  --key-alias KEYALIAS  (Android-only) Key alias
  --key-password KEYPASSWORD
                        (Android-only) Key password
  --show-config         Show info about the appium server configuration and
                        exit
  --no-perms-check      Bypass Appium's checks to ensure we can read/write
                        necessary files
  --command-timeout DEFAULTCOMMANDTIMEOUT
                        The default command timeout for the server to use for
                        all sessions. Will still be overridden by
                        newCommandTimeout cap
  --keep-keychains      (iOS) Whether to keep keychains (Library/Keychains)
                        when reset app between sessions
  --strict-caps         Cause sessions to fail if desired caps are sent in
                        that Appium does not recognize as valid for the
                        selected device
  --isolate-sim-device  Xcode 6 has a bug on some platforms where a certain
                        simulator can only be launched without error if all
                        other simulator devices are first deleted. This
                        option causes Appium to delete all devices other than
                        the one being used by Appium. Note that this is a
                        permanent deletion, and you are responsible for using
                        simctl or xcode to manage the categories of devices
                        used with Appium.
  --tmp TMPDIR          Absolute path to directory Appium can use to manage
                        temporary files, like built-in iOS apps it needs to
                        move around. On *nix/Mac defaults to /tmp, on Windows
                        defaults to C:WindowsTemp
  --trace-dir TRACEDIR  Absolute path to directory Appium use to save ios
                        instruments traces, defaults to <tmp
                        dir>/appium-instruments
  --intent-action INTENTACTION
                        (Android-only) Intent action which will be used to
                        start activity
  --intent-category INTENTCATEGORY
                        (Android-only) Intent category which will be used to
                        start activity
  --intent-flags INTENTFLAGS
                        (Android-only) Flags that will be used to start
                        activity
  --intent-args OPTIONALINTENTARGUMENTS
                        (Android-only) Additional intent arguments that will
                        be used to start activity
  --dont-stop-app-on-reset
                        (Android-only) When included, refrains from stopping
                        the app before restart
  --debug-log-spacing   Add exaggerated spacing in logs to help with visual
                        inspection
  --suppress-adb-kill-server
                        (Android-only) If set, prevents Appium from killing
                        the adb server instance
  --async-trace         Add long stack traces to log entries. Recommended for
                        debugging only.

 

原文地址:https://www.cnblogs.com/candiceli/p/4572514.html