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
    事在人为,功不唐捐
  • 相关阅读:
    [ACM_数学] 大菲波数 (hdu oj 1715 ,java 大数)
    [ACM_水题] 不要62(hdu oj 2089, 不含62和4的数字统计)
    [ACM_其他] Square Ice (poj1099 规律)
    [ACM_图论] Domino Effect (POJ1135 Dijkstra算法 SSSP 单源最短路算法 中等 模板)
    [ACM_搜索] Triangles(POJ1471,简单搜索,注意细节)
    [ACM_图论] Sorting Slides(挑选幻灯片,二分匹配,中等)
    [ACM_图论] The Perfect Stall 完美的牛栏(匈牙利算法、最大二分匹配)
    [ACM_几何] Metal Cutting(POJ1514)半平面割与全排暴力切割方案
    [ACM_动态规划] 轮廓线动态规划——铺放骨牌(状态压缩1)
    [ACM_数据结构] 竞赛排名
  • 原文地址:https://www.cnblogs.com/xinleishare/p/4369678.html
Copyright © 2011-2022 走看看