Desiredcapabilities content--appium Service Keywords

Source: Internet
Author: User
Tags appium
<span id="Label3"></p><pre><strong><strong>last learned some desiredcapabilities usage, some still not very clear, go to Appium official website to look for documents, feel write very full:</strong></strong><br><br># # Appium Service keywords <expand_table>| keywords | description | instance | | ----|-----------|-------|| ' Automationname ' | The automated test engine you want to use | ' Appium ' (default) or ' selendroid ' | | ' PlatformName ' | You want to test the phone operating system | ' IOS ', ' Android ', or ' Firefoxos ' | | ' Platformversion ' | mobile OS version | For example: ' 7.1 ', ' 4.4 ' | | ' DeviceName ' | Using the type of phone or simulator type | ' iphone Simulator ', ' iPad Simulator ', ' iphone Retina 4-inch ', ' Android Emulator ', ' Galaxy S4 ' such as On iOS, The value of this keyword must be one of the available device names that you get using ' Instruments-s devices '. On Android, This keyword does not work at this Time. ' App ' | '. the local absolute path or remote path of the IPA ' or '. apk ' file, or it can be a '. zip ' that includes either. Appium will first try to install the path corresponding to the application on the appropriate real machine or simulator. For android, If you specify ' app-package ' and ' app-activity ' (see below), then you can not specify ' app '. * * will conflict with ' browsername ' * * | For example '/abs/path/to/my.apk ' or ' Http://myapp.com/app.ipa ' | | ' Browsername ' | The name of the mobile Web browser that requires automated Testing. If you are automating your application, the value of this keyword should be Empty. |ios system can be used ' Safari ', Android system can use ' Chrome ', ' Chromium ', or ' Browser '. | ' Newcommandtimeout ' | Sets the command time-out, units: seconds. When the timeout period is reached and the new command is not received, Appium assumes that the client exits and then ends the session automatically. | For example ' | ' | ' autoLaunch ' | Appium whether the app needs to be installed and started Automatically. The default value ' True ' | ' true ', ' false ' | | ' Language ' | (sim/emu-only) Setting simulator(simulator/emulator) language, such as: ' fr ' | | ' Locale ' | (sim/emu-only) sets the locale of the simulator (simulator/emulator). such as: ' Fr_ca ' | | ' Udid ' | Unique device identification for connected physical devices | Such as: ' 1ae203187fc012g ' | | ' Orientation ' | (sim/emu-only) start test in a set direction mode | ' LANDSCAPE ' (landscape) or ' PORTRAIT ' (portrait) | | ' Autowebview ' | Translates directly to the WebView Context. The default value ' false ', | ' True ', ' false ' | | ' NoReset ' | Do not reset the app state before the Session. The default value ' false '. | ' True ', ' false ' | | ' Fullreset ' | (iOS) to delete the entire emulator directory. (Android) resets the app state by uninstalling-rather than emptying the Data. On Android, This also automatically clears the app under test at the end of the Session. Default ' false ' | ' True ', ' false ' |### android-specific <expand_table>| keywords | description | instance | | ----|-----------|-------|| ' Appactivity ' | The Android Activity name you want to launch from your app Package. It usually needs to be added in front of '. ' (E.G. using '. Mainactivity ' instead of ' mainactivity ') | ' mainactivity ', '. Settings ' | | ' Apppackage ' | The package name of the Android app you want to run | such as ' com.example.android.myApp ', ' com.android.settings ' | | ' Appwaitactivity ' | You want to wait for the Android Activity name to start | ' splashactivity ' | | ' Devicereadytimeout ' | Set a timeout waiting for an emulator or a real machine to be ready | ' 5 ' | | ' Androidcoverage ' | The instrumentation class used to perform the Test. As command ' adb shell am instrument-e coverage true-w ' the '-w ' parameter. | ' COM.My. Pkg/com.my.pkg.instrumentation.myinstrumentation ' | | ' Enableperformancelogging ' | (Chrome and WebView only) turn on chromedriver performance logs. (default ' False ') | ' True ', ' false ' | | ' Androiddevicereadytimeout ' | Wait for the device to be ready when the app is Started. In Seconds. | like ' 30 ' | | ' Androiddevicesocket ' | The socket name of the development Tool. Required only if the application being tested is a browser that uses the Chromium kernel. The socket is opened by the browser and chromedriver it as a developer tool to Connect. | like ' Chrome_devtools_remote ' | | ' AvD ' | The name of the AVD (android virtual appliance) that needs to be Started. | like ' api19 ' | | ' Avdlaunchtimeout ' | The time-out in milliseconds to wait for the AVD to start and connect to the ADB. (default value ' 120000 ') | ' 300000 ' | | ' Avdreadytimeout ' | The time-out in milliseconds to wait for the AVD to finish starting the Animation. (default value ' 120000 ') | ' 300000 ' | | ' Avdargs ' | Additional parameters that need to be added when starting the AVD. | like '-netfast ' | | ' Usekeystore ' | Use a custom KeyStore to re-sign the APK. Default value ' false ' | ' true ' or ' false ' | | ' Keystorepath ' | The path to the custom Keystore. Default: ~/.android/debug.keystore| such as '/path/to.keystore ' | | ' Keystorepassword ' | Customize the password for the Keystore. | like ' foo ' | | ' Keyalias ' | Key aliases | like ' Androiddebugkey ' | | ' Keypassword ' | Key's password | like ' foo ' | | ' Chromedriverexecutable ' | Webdriver the absolute path to the executable file (if the Chromium core provides the corresponding webdriver, it should be used instead of Appium's own Webdriver) |'/abs/path/to/webdriver ' | | ' Autowebviewtimeout ' | The time, in milliseconds, to wait for the Webview context to be activated. Default value ' 2000 ' | such as ' 4 ' | | ' Intentaction ' | The intent action used to start the Activity. (default ' Android.intent.action.MAIN ') | such as ' Android.intent.action.MAIN ', ' Android.intent.action.VIEW ' | | ' Intentcategory ' | The intent category used to initiate Activity. (default ' Android.intent.category.LAUNCHER ') | such as ' Android.intent.category.LAUNCHER ', ' Android.intent.category.APP_CONTACTS ' | ' intentflags ' | Flags for initiating activity (default ' 0x10200000 ') | such as ' 0x10200000 ' | ' optionalintentarguments ' | The additional intent parameter used to initiate 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 that is being tested when you start an app with Adb. If the application being tested was created by another anchor application (anchor app), Set this parameter to ' false ' to allow the anchor app to stay running while using ADB to launch the app 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 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 steps to check and debug your app. Can only be used when using uiautomator, using Selendroid is not possible. Default value ' false ' | ' True ' or ' false ' | | ' Ignoreunimportantviews ' | Call Uiautomator's function ' Setcompressedlayouthierarchy () '. Because the accessibility command performs faster when some elements are ignored, this keyword can speed up the test Execution. Ignored elements will not 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/emulators. This parameter works only when using Uiautomator and is not valid when using SELENDROID. Default Value: ' false '. | ' True ' or ' false ' | | ' Chromeoptions ' | Allows incoming chrome driver to use the Chromeoptions parameter. Please refer to [chromeoptions] (https://sites.google.com/a/chromium.org/chromedriver/capabilities) for more Information. ' Chromeoptions: {args: ['--disable-popup-blocking ']} ' |### ios-specific <expand_table>| keywords | description | instance | | ----|-----------|-------|| ' Calendarformat ' | (sim-only) set the calendar format for iOS simulator | As ' Gregorian ' (gregorian) | | ' BuNdleid ' | Bundle ID of the application being Tested. Used to launch tests in Real-world devices, and also to launch tests with other keywords that require bundle IDS. When you perform a test on a real device using bundle ID, You can not provide the ' app ' keyword, but you must provide ' Udid '. | like ' io.appium.TestApp ' | | ' Udid ' | Unique device number of the connected real device (unique devices Identifier) | such as ' 1ae203187fc012g ' | | ' Launchtimeout ' | In milliseconds, set a time to wait for instruments before the Appium run fails | For example: ' 20000 ' | | ' Locationservicesenabled ' | (sim-only) forces the location service to be turned on or off. The default value is to keep the current emulator set | ' True ' or ' false ' | | ' Locationservicesauthorized ' | (sim-only) to avoid a warning of location services by modifying the Plist file setting to allow apps to use location Services. The default value is to keep the current emulator set. Note that when using this keyword, you also need to use the ' bundleid ' keyword to send the bundle ID of your app. | ' true ' or ' false ' | | ' Autoacceptalerts ' | Automatically select accept when an IOS personal information access warning (such as location, contact, picture) Appears. The default value ' false '. | ' true ' or ' false ' | | ' Autodismissalerts ' | When an IOS personal information access warning (such as location, contact, picture) appears, automatic selection is not accepted (Dismiss). The default value ' false '. | ' true ' or ' false ' | | ' Nativeinstrumentslib ' | Use native intruments library (that is, Close Instruments-without-delay) | ' true ' or ' false ' | | ' Nativewebtap ' | (sim-only) allows "real", non-javascript-based web click (tap) in Safari. Default Value: ' false '. Note: depending on the viewport size/scale, the click action does not necessarily pinpoint the corresponding element in the Location. | ' true ' or' False ' | | ' Safariinitialurl ' | (sim-only) (>= 8.1) The initial address of Safari. The default value is a local welcome page | For example: ' https://www.github.com ' | | ' Safariallowpopups ' | (sim-only) allows JavaScript to create new windows in Safari. The default is to keep the emulator current settings. | ' true ' or ' false ' | | ' Safariignorefraudwarning ' | (sim-only) prevents Safari from displaying a warning that this site may be at Risk. The default is to keep the browser current settings. | ' true ' or ' false ' | | ' Safariopenlinksinbackground ' | (sim-only) Whether Safari allows links to open in a new window. The default is to keep the browser current settings. | ' true ' or ' false ' | | ' Keepkeychains ' | (sim-only) whether to keep the stored password record (keychains) (library/keychain (KEYCHAINS)) when Appium session starts/ends | ' True ' or ' false ' | | ' Localizablestringsdir ' | Where to find the localized string. Default value ' En.lproj ' | ' en.lproj ' | | ' Processarguments ' | Parameters passed to AUT via instruments | like '-myflag ' | | ' Interkeydelay ' | In milliseconds, press the delay time between each key. | like ' 100 ' | | ' Showioslog ' | Whether the log of the device is displayed in the Appium log. The default value ' false ' | ' true ' or ' false ' | | ' Sendkeystrategy ' | Enter a text-to-text box policy. Simulator default value: ' OneByOne ' (one after the other). Real device defaults: ' grouped ' (group input) | ' onebyone ', ' grouped ' or ' SetValue ' | | ' Screenshotwaittimeout ' | The maximum wait time in seconds for the screen to be Generated. Default Value: 10. | like ' 5 ' | | ' Waitforappscript ' | The IOS automation script code that determines whether the app is Started. By default, the system waits until the pageThe polygon content is not Empty. The result must be a Boolean Type. | For example ' true; ', ' target.elements (). length > 0; ', ' $.delay (5000); true; ' |</pre><p><p></p></p><p><p>Desiredcapabilities content--appium Service Keywords</p></p></span>

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.