![]() ![]() ![]() Needed only when tested app is a Chromium embedding browser. e.g., 8201 remoteAdbHost Optional remote ADB server host e.g.: 192.168.0.101 androidDeviceSocket Devtools socket name. Read Parallel Testing Setup Guide for more details. When you run tests in parallel, you must adjust the port to avoid conflicts. sdcard/Downloads/ adbPort Port used to connect to the ADB server (default 5037) 5037 systemPort systemPort used to connect to appium-uiautomator2-server, default is 8200 in general and selects one port from 8200 to 8299. Defaults to 90000 e.g., 90000 androidInstallPath The name of the directory on the device in which the apk will be push before install. Passed to -a in adb shell am broadcast -a _EMMA androidDeviceReadyTimeout Timeout in seconds used to wait for a device to become ready after booting e.g., 30 androidInstallTimeout Timeout in milliseconds used to wait for an apk to install to the device. Passed to -w in adb shell am instrument -e coverage true -w com.my.Pkg/com.my. androidCoverageEndIntent A broadcast action implemented by yourself which is used to dump coverage into file system. By default the value of this capability is the same as for appActivity, appWaitDuration Timeout in milliseconds used to wait for the appWaitActivity to launch (default 20000) 30000 deviceReadyTimeout Timeout in seconds while waiting for device to become ready 5 androidCoverage Fully qualified instrumentation class. SplashActivity, SplashActivity,OtherActivity, *, *.SplashActivity appWaitPackage Java package of the Android app you want to wait for. You must set it to the very first focused application activity name in case it is different from the one which is set as appActivity if your capability has appActivity and appPackage. By default the value of this capability is the same as for appActivity. By default this capability is received from the package manifest attribute value), appWaitActivity Activity name/names, comma separated, for the Android activity you want to wait for. Settings appPackage Java package of the Android app you want to run. By default this capability is received from the package manifest (action:, category: ) MainActivity. These Capabilities are available only on Android-based drivers (like UiAutomator2 for example).Ĭapability Description Values appActivity Activity name for the Android activity you want to launch from your package. e.g., true enablePerformanceLogging (Web and webview only) Enable Chromedriver’s (on Android) or Safari’s (on iOS) performance logging (default false) true, false printPageSourceOnFindFailure When a find operation fails, print the current page source. See the event timing docs for the the structure of this response. The timings are then reported as events property on response to querying the current session. See here for more details true, false eventTimings Enable or disable the reporting of the timings for various Appium-internal events (e.g., the start and end of each command, etc.). See here for more details true, false fullReset Perform a complete reset. ![]() Default false true, false noReset Don’t reset app state before this session. 1ae203187fc012g orientation (Sim/Emu-only) start in a certain orientation LANDSCAPE or PORTRAIT autoWebview Move directly into Webview context. fr_CA udid Unique device identifier of the connected physical device e.g. fr locale (Sim/Emu-only) Locale to set for the simulator / emulator. On Android, available only on API levels 22 and below e.g. 60 language (Sim/Emu-only) Language to set for the simulator / emulator. ‘Safari’ for iOS and ‘Chrome’, ‘Chromium’, or ‘Browser’ for Android newCommandTimeout How long (in seconds) Appium will wait for a new command from the client before assuming the client quit and ending the session e.g. ![]() Should be an empty string if automating an app instead. abs/path/to/my.apk or browserName Name of mobile web browser to automate. Note that this capability is not required for Android if you specify appPackage and appActivitycapabilities (see below). Appium will attempt to install this app binary on the appropriate device first. app The absolute local path or remote http URL to an. On Android this capability is currently ignored, though it remains required. On iOS, this should be one of the valid devices returned by instruments with instruments -s devices. Capability Description Values automationName Which automation engine to use Appium (default) or Selendroidor UiAutomator2 or Espresso for Android or XCUITest for iOS or YouiEngine for application built with You.i Engine platformName Which mobile OS platform to use iOS, Android, or FirefoxOS platformVersion Mobile OS version e.g., 7.1, 4.4 deviceName The kind of mobile device or emulator to use iPhone Simulator, iPad Simulator, iPhone Retina 4-inch, Android Emulator, Galaxy S4, etc…. ![]()
0 Comments
Leave a Reply. |