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:\Windows\Temp
  --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.
时间: 2024-12-26 05:11:21

Appium -h的相关文章

Appium遇到问题:

问题一:问题org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. 解决办法:(1)启动appium(2)运行cmd 输入 adb devices -l 查看UDID 如图:(3)再在cmd中输入 appium

使用appium做安卓手机web自动化测试 真机demo

一:appium相关环境搭建过程略. 二:连接真机: 1.手机(andriod 4.2.2)连接电脑,打开USB调试模式. 2.运行cmd 输入 adb devices -l 查看UDID,如图: 3.再在cmd中输入 appium -a 127.0.0.1 -p4723 -U4d007e9a1b0050d1 (-a表示ip,-p表示端口,-U表示设备的udid 可以通过appium -h查看更多命令) 4.如果如下图所示 就表示 appium服务启动成功了,注意这个窗口不要关闭 因为这是app

window下appium+python環境搭建

一.环境配置篇在Windows上配置1)下载安装node.js(http://nodejs.org/download/) 安装的时候有选项,记得把环境变量添加到path路径2)使用npm安装appium,运行CMD输入 npm install -g appium(有些朋友反应在cmd下运行npm无效,如果这样请把nodejs的目录添加到用户变量的path下重启cmd即可 参考帖子:http://blog.csdn.net/iispring/article/details/8023319) ,如下

appium 多线程还是多进程(转)

https://www.cnblogs.com/zouzou-busy/p/11440175.html 在前面我们都是使用一个机器进行测试,在做app自动化的时候,我们要测不同的机型,也就是兼容性测试,如果一台一台设备去执行,那就显的太麻烦了.所以经常需要我们启动多个设备,同时跑自动化测试用例,要跑多个设备时,首先要启动多个appium服务. 启动多个appium服务 在之前我们都是在命令行里输入appium来启动appium服务,这样启动的默认端口是4723,我们可以使用-p参数来指定端口号,

Requested a new session but one was in progress

作为appium初学者,估计很多人都会遇到这个错误.如何解决: 1.环境变量中去掉appium的安装路径,添加Appium\node_modules\.bin这个路径进去. 2.启动cmd 输入appium --session-override即可. 注意:session后面没有空格 加了空格会不识别的. 输入appium -h 可以看到全部参数列表

python appium环境搭建

appium是什么? 1,appium是开源的移动端自动化测试框架:2,appium可以测试原生的.混合的.以及移动端的web项目:3,appium可以测试ios,android应用(当然了,还有firefox os):4,appium是跨平台的,可以用在osx,windows以及linux桌面系统上: 这里我们配置Android端的测试环境. 对于Android移动端的测试我们首先需要安装的是两个: 1.JDK的安装,这个就不赘述了,自行百度 2.Android SDK的安装配置,参考:htt

中文Appium API 文档

该文档是Testerhome官方翻译的源地址:https://github.com/appium/appium/tree/master/docs/cn官方网站上的:http://appium.io/slate/cn/master/?ruby#about-appium 中文Appium API 文档 第一章:关于appium1.1 appium客户端客户端类库列表及Appium服务端支持 这些类库封装了标准Selenium客户端类库,为用户提供所有常见的JSON 格式selenium命令以及额外的

APPIUM API整理(python)---操作类

APPIUM 常用API介绍(1) 前言:android手机大家都很熟悉,操作有按键.触摸.点击.滑动等,各种操作方法可以通过api的方法来实现.参考博文:http://blog.csdn.net/bear_w/article/details/50330565 1.click click(self):Clicks the element(点击元素 )用法 element.click() driver.find_element_by_id('com.huawei.camera:id/shutter

appium()-java-client-api

//appium java-client-api 介绍 原文地址:http://appium.github.io/java-client/index-all.html#_S_ A B C D E F G H I J K L M N O P Q R S T U V W Y Z A AccessibilityId(String) - Static method in class io.appium.java_client.MobileBy About Android accessibility ht