Desiredcapabilities parameter settings for Appium

Source: Internet
Author: User
Tags appium

Desiredcapabilities parameter settings for Appium

The desiredcapabilities is responsible for setting the parameters when the server is started. Actual use, according to their own needs, you can modify some of the parameters.

For example, when an application looks for an element of a page, it may take longer to locate. The default command interval is 60s, and will automatically exit if it is not found within 60s. You can use a newCommandTimeout value that is set to a larger size.

capabilities.setCapability("newCommandTimeout",240);

For example, when you first use Appium, set the path of the installation apk above, and the debugger discovers that the interface has no return data after installation. The problem was later fixed because it was re-signed at the time of installation. The protection mechanism of the program makes no data return. You can use noSign settings to avoid re-signing.

capabilities.setCapability("noSign","true");

Of course, later found not to write the file path in the program, but to install the Test package in advance, so as to avoid the need to reinstall each time.

Full- ServerParameters

Http://appium.io/slate/en/master/?ruby#appium-server-capabilities

**server capabilities**capability Appium, selendroidplatformname platform name:IOS,Android, or FirefoxosplatformversionMovingSystem version number of the device, 7.1, 4.4deviceName ios:instruments-s devices,android: Write the App installation file path:/abs/path/to/my.ap K or Http://myapp.com/app.ipabrowserName test.WebBrowser, if the test app ignores the maximum time Newcommandtimeout waits for a new command, and exits after a timeout.                 The default is whether 60sautoLaunch is automatically installed and started, the default Truelanguage simulator language setting locale simulator regional Settings Udid Device number Orientation Simulator's screen settings Autowebview Move directly into Webview contextnoreset not heavy before current session App Status Fullreset iOS Delete folder, Android Delete app data. **android only**appactivity to start the activityapppackage to start the package appwaitactivity wait for AC Tivityappwaitpackage waiting packet devicereadytimeout time to wait for device readiness Androidcoverage Enableperformancel Ogging (Chrome and WebView only) default= Falseandroiddevicereadytimeoutandroiddevicesocketavdavdlaunchtimeoutavdreadytimeoutavdargsusekeystorekeystorepathkeystore Passwordkeyaliaskeypasswordchromedriverexecutableautowebviewtimeoutintentactionintentcategoryintentflagsoptionalintentarg Umentsunicodekeyboardresetkeyboardnosign Skip checking and signing,work only with uiautomator and not with SE LendrOidignoreunimportantviews**ios only** Calendarformatbundleidudidlaunchtimeoutlocationservicesenabledlocationservicesauthorizedautoacceptalertsnativeinstruments Libnativewebtapsafariallowpopupssafariignorefraudwarningsafariopenlinksinbackgroundkeepkeychainslocalizablestringsdirproc Essargumentsinterkeydelayshowioslog

Desiredcapabilities parameter settings for Appium

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.