zoukankan      html  css  js  c++  java
  • Appium Server 传递Android参数

    Appium  server Capabilities 传递参数    Android 特定

    Android Only

    Capability Description Values
    appActivity Activity name for the Android activity you want to launch from your package. This often needs to be preceded by a . (e.g., .MainActivity instead of MainActivity) MainActivity, .Settings
    appPackage Java package of the Android app you want to run com.example.android.myApp, com.android.settings
    appWaitActivity Activity name for the Android activity you want to wait for SplashActivity
    appWaitPackage Java package of the Android app you want to wait for com.example.android.myApp, com.android.settings
    deviceReadyTimeout Timeout in seconds while waiting for device to become ready 5
    androidCoverage Fully qualified instrumentation class. Passed to -w in adb shell am instrument -e coverage true -w com.my.Pkg/com.my.Pkg.instrumentation.MyInstrumentation
    enablePerformanceLogging (Chrome and webview only) Enable Chromedriver’s performance logging (default false) true, false
    androidDeviceReadyTimeout Timeout in seconds used to wait for a device to become ready after booting e.g., 30
    androidDeviceSocket Devtools socket name. Needed only when tested app is a Chromium embedding browser. The socket is open by the browser and Chromedriver connects to it as a devtools client. e.g., chrome_devtools_remote
    avd Name of avd to launch e.g., api19
    avdLaunchTimeout How long to wait in milliseconds for an avd to launch and connect to ADB (default 120000) 300000
    avdReadyTimeout How long to wait in milliseconds for an avd to finish its boot animations (default 120000) 300000
    avdArgs Additional emulator arguments used when launching an avd e.g., -netfast
    useKeystore Use a custom keystore to sign apks, default false true or false
    keystorePath Path to custom keystore, default ~/.android/debug.keystore e.g., /path/to.keystore
    keystorePassword Password for custom keystore e.g., foo
    keyAlias Alias for key e.g., androiddebugkey
    keyPassword Password for key e.g., foo
    chromedriverExecutable The absolute local path to webdriver executable (if Chromium embedder provides its own webdriver, it should be used instead of original chromedriver bundled with Appium) /abs/path/to/webdriver
    autoWebviewTimeout Amount of time to wait for Webview context to become active, in ms. Defaults to 2000 e.g. 4
    intentAction Intent action which will be used to start activity (default android.intent.action.MAIN) e.g.android.intent.action.MAIN, android.intent.action.VIEW
    intentCategory Intent category which will be used to start activity (default android.intent.category.LAUNCHER) e.g. android.intent.category.LAUNCHER, android.intent.category.APP_CONTACTS
    intentFlags Flags that will be used to start activity (default 0x10200000) e.g. 0x10200000
    optionalIntentArguments Additional intent arguments that will be used to start activity. See Intent arguments e.g. --esn <EXTRA_KEY>, --ez <EXTRA_KEY> <EXTRA_BOOLEAN_VALUE>, etc.
    stopAppOnReset Stops the process of the app under test, before starting the app using adb. If the app under test is created by another anchor app, setting this false, allows the process of the anchor app to be still alive, during the start of the test app using adb, default true true or false
    unicodeKeyboard Enable Unicode input, default false true or false
    resetKeyboard Reset keyboard to its original state, after running Unicode tests with unicodeKeyboard capability. Ignored if used alone. Default false true or false
    noSign Skip checking and signing of app with debug keys, will work only with UiAutomator and not with selendroid, default false true or false
    ignoreUnimportantViews Calls the setCompressedLayoutHierarchy() uiautomator function. This capability can speed up test execution, since Accessibility commands will run faster ignoring some elements. The ignored elements will not be findable, which is why this capability has also been implemented as a toggle-able setting as well as a capability. Defaults to false true or false
    事在人为,功不唐捐
  • 相关阅读:
    redis分布式锁解决超卖问题
    redis使用
    Xcode 解决日志打印不全问题
    苹果电脑系统怎么重装?这几步就可以轻松搞定
    Mac 一键显示所有隐藏文件 不要那么六好吧
    iOS导入高德地图出现缺失armv7--"Undefined symbols for architecture armv7"
    如何生成.a文件,小心有坑!!
    保护你的代码,生成.a文件以及.framework文件需要注意的地方
    二维码扫描工具实现
    iOS 调整图片尺寸,告诉你的UI,别问我尺寸!我要最大的
  • 原文地址:https://www.cnblogs.com/xinleishare/p/4369678.html
Copyright © 2011-2022 走看看