Desiredcapabilities Content Detailed _selenium

Source: Internet
Author: User
Tags abs locale time in milliseconds cpu usage appium

| ' Automationname ' |

The automated test engine you want to use | ' Appium ' (default) or ' Selendroid ' |


| ' PlatformName ' |

You want to test the mobile operating system | ' IOS ', ' Android ', or ' Firefoxos ' |


| ' Platformversion ' |

Mobile OS Version | For example: ' 7.1 ', ' 4.4 ' |


| ' DeviceName ' |

Use the type of phone or simulator type | ' iphone Simulator ', ' IPad Simulator ', ' iphone Retina 4-inch ', ' Android emulator ', ' Galaxy S4 ', and so on.

On IOS, the value of this keyword must be one of the available device names using ' instruments-s devices '. On Android, this keyword doesn't work at the moment. |


| ' App ' |

'. IPA ' or '. apk ' file is located in the local absolute path or remote path, or it can be a '. zip ' that includes either.

Appium will first attempt to install the path corresponding to the application on the appropriate true machine or emulator.

For the Android system, if you specify ' app-package ' and ' app-activity ' (see below), you may not specify ' app '.

* * will clash with ' browsername ' | such as '/abs/path/to/my.apk ' or ' Http://myapp.com/app.ipa ' |


| ' Browsername ' |

The name of the mobile Web browser that requires automated testing.

If the application is tested for automation, the value of this keyword should be null.

|ios system can be used ' Safari ', the Android system can use ' Chrome ', ' Chromium ', or ' Browser '. |


| ' Newcommandtimeout ' |

Set the command timeout time in seconds.

Appium assumes that the client exits and then automatically ends the session when the timeout is reached and the new command is not received. | For example, ' 60 '


| ' Autolaunch ' |

Appium whether the application needs to be installed and started automatically. Default value ' True ' | ' true ', ' false ' |


| ' Language ' |

(sim/emu-only) Set the language of the simulator (simulator/emulator). | For example: ' FR ' |


| ' Locale ' |

(sim/emu-only) Sets the locale of the emulator (simulator/emulator). | For example: ' Fr_ca ' |


| ' Udid ' | Unique device identification for connected physical devices | such as: ' 1ae203187fc012g ' |


| ' Orientation ' |

(sim/emu-only) Start testing in a set direction mode | ' Landscape ' (Landscape) or ' Portrait ' (Portrait) |


| ' Autowebview ' |

Direct conversion to the webview context. Default value ' False ', | ' true ', ' false ' |


| ' NoReset ' |

Do not reset the application state before the session. The default value is ' false '. | ' true ', ' false ' |


| ' Fullreset ' |

(IOS) deletes the entire emulator directory. (Android) Resets the application state by unloading-rather than emptying the data. On Android, this also automatically clears the application after the session ends. Default value ' false ' | ' true ', ' false ' |

### Android Unique


<expand_table>


| key Words | description |
|----|-----------|-------|

| ' Appactivity ' |

The name of the Android activity you want to start from your application package.

It usually needs to be preceded by a '. ' (e.g., use '. Mainactivity ' instead of ' mainactivity ' | ' mainactivity ', '. Settings ' |


| ' Apppackage ' |

The package name of the Android app you want to run |

Like ' com.example.android.myApp ', ' com.android.settings ' |


| ' Appwaitactivity ' |

Android activity name you want to wait to start | ' splashactivity ' |


| ' Devicereadytimeout ' |

Set timeout for waiting for an emulator or real machine to be ready | ' 5 ' |


| ' Androidcoverage ' |

The instrumentation class used to perform the test.

The '-w ' parameter as command ' adb shell am instrument-e coverage true-w '. | ' Com.my.pkg/com.my.pkg.instrumentation.myinstrumentation ' |


| ' enableperformancelogging ' |

(For Chrome and WebView only) to open the Chromedriver performance log. (Default ' false ') | ' True ', ' false ' |


| ' Androiddevicereadytimeout ' |

The timeout to wait for the device to be ready when the application is started. in seconds. | such as ' 30 ' |


| ' Androiddevicesocket ' |

The socket name of the development tool. It is only required when the application being tested is a browser using the Chromium kernel. The socket is opened by the browser, and then chromedriver it as a developer tool. | such as ' chrome_devtools_remote ' |


| ' AVD ' |

The name of the AVD (Android virtual device) that needs to be started. | such as ' api19 ' |


| ' Avdlaunchtimeout ' |

Timeout in milliseconds, waiting for AVD to start and connect to the ADB. (Default value ' 120000 ') | ' 300000 ' |


| ' Avdreadytimeout ' |

In milliseconds, wait for AVD to complete the timeout for starting the animation. (Default value ' 120000 ') | ' 300000 ' |


| ' Avdargs ' |

Additional parameters to be added when starting the AVD. | '-netfast ' |


| ' Usekeystore ' |

Use a custom KeyStore to re-sign the APK. Default value ' false ' | ' true ' or ' false ' |


| ' Keystorepath ' |

The path of the custom KeyStore. Default: ~/.android/debug.keystore| such as '/path/to.keystore ' |


| ' Keystorepassword ' |

Custom KeyStore password. | if ' foo ' |


| ' Keyalias ' |

Key alias | such as ' androiddebugkey ' |


| ' Keypassword ' |

Key's password | such as ' foo ' |


| ' chromedriverexecutable ' |

Webdriver the absolute path of the executable file (if the Chromium core provides a corresponding webdriver, it should be replaced by Appium webdriver) | '/abs/path/to/webdriver ' |


| ' Autowebviewtimeout ' |

The time in milliseconds to wait for the webview context to activate. Default value ' 2000 ' | such as ' 4 ' |


| ' Intentaction ' |

The intent action to start the activity. (Default value ' Android.intent.action.MAIN ') | such as ' Android.intent.action.MAIN ', ' Android.intent.action.VIEW ' |


| ' Intentcategory ' |

A intent category used to initiate an activity. (Default value ' Android.intent.category.LAUNCHER ') | such as ' Android.intent.category.LAUNCHER ', ' Android. Intent.category.APP_CONTACTS '


| ' Intentflags ' |

Identification (flags) used to start the activity (default value ' 0x10200000 ') | such as ' 0x10200000 '


| ' Optionalintentarguments ' |

The additional intent parameter used to start the activity. See [Intent parameters] (HTTP://DEVELOPER.ANDROID.COM/TOOLS/HELP/ADB.HTML#INTENTSPEC) | such as '--esn <EXTRA_KEY> ', '--ez <extra _key> <EXTRA_BOOLEAN_VALUE> '


| ' Dontstopapponreset ' |

Do not stop the process of application being tested when using ADB to start the application. If the application being tested was created by another anchor app, set this parameter to ' false ' to allow the anchor application to remain running when using the ADB to start the application under test.                                                In other words, when ' dontstopapponreset ' is set to ' true ', we do not include the '-s ' flag in the ' adb shell am start ' command. If this parameter is not set or set to ' false ', we will add the '-s ' flag. Default value: ' False ' | ' True ' or ' false ' |


| ' Unicodekeyboard ' |

Use the Unicode input method. Default value ' false ' | ' True ' or ' false ' |


| ' Resetkeyboard ' |

After the Unicode test with the ' unicodekeyboard ' keyword is set, reset the input method to its original state. If used alone, it will be ignored. Default value ' false ' | ' True ' or ' false ' |


| ' Nosign ' |

Skip the check and the steps for the debug signature of the application. Can only use when using Uiautomator, use selendroid is not. Default value ' false ' | ' True ' or ' false ' |


| ' Ignoreunimportantviews ' |

Call the Uiautomator function ' Setcompressedlayouthierarchy () '. This keyword speeds up the execution of the test because the accessibility command speeds up the execution of some elements. The ignored elements will not be able to be found, so this keyword is also implemented as a * setting (settings) that can be changed at any time. Default value ' false ' | ' True ' or ' false ' |


| ' Disableandroidwatchers ' |

Turn off Android Monitor application unresponsive (ANR) and Crash (crash) monitors, which can reduce CPU usage on Android devices/simulators. This parameter can only work when using uiautomator and is not valid when using Selendroid. Default value: ' False '. | ' True ' or ' false ' |


| ' Chromeoptions ' |

Allow incoming chrome driver to use chromeoptions parameters.                                   Consult [chromeoptions] (https://sites.google.com/a/chromium.org/chromedriver/capabilities) for more More information. | ' Chromeoptions: {args: ['--disable-popup-blocking ']} ' |

### iOS Unique


<expand_table>


| key Words | description |

|----|-----------|-------|


| ' Calendarformat ' |

(sim-only) Set calendar format for iOS emulator | such as ' Gregorian ' (Gregorian calendar) |


| ' Bundleid ' |

The bundle ID of the application being tested. Used to start a test in a real device, or to start a test with another keyword that requires a bundle ID. When you use the bundle ID to perform a test on a real device, you may not provide the ' app ' keyword, but you must provide ' udid '. | such as ' IO.APPIUM.TESTAPP ' |


| ' Udid ' |

Unique device number for connected real device (unique device identifier) | such as ' 1ae203187fc012g ' |


| ' Launchtimeout ' |

In milliseconds, set a wait instruments time before the Appium run fails | For example: ' 20000 ' |


| ' locationservicesenabled ' |

(sim-only) forces the positioning service to be turned on or off. The default value is to keep the current emulator set | ' True ' or ' false ' |


| ' locationservicesauthorized ' |

(sim-only) to prevent the presence of a warning from locating services by modifying the Plist file setting to allow the application to use the positioning service. The default value is to keep the current emulator set. Please note that when using this keyword, you will also need to use the ' bundleid ' keyword to send your application's bundle ID. | ' true ' or ' false ' |


| ' Autoacceptalerts ' |

When IOS personal information access warning (such as location, contact, picture) appears, it automatically chooses to accept (Accept). The default value is ' false '. | ' true ' or ' false ' |


| ' Autodismissalerts ' |

When IOS personal information access warning (such as location, contact, picture) appears, it is automatically chosen not to accept (Dismiss). The default value is ' false '. | ' true ' or ' false ' |


| ' Nativeinstrumentslib ' |

Use native Intruments library (that is, turn off instruments-without-delay) | ' true ' or ' false ' |


| ' Nativewebtap ' |

(sim-only) allows "real", non JavaScript based Web clicks (tap) in Safari. Default value: ' False '. Note: Depending on the size/scale of the viewport, clicking may not necessarily be accurate to the corresponding element in the location. | ' true ' or ' false ' |


| ' Safariinitialurl ' |

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.