Capabilities Builder - Appium
Capabilities are a series of key-value pairs that allow you to configure your tests on BrowserStack.
BrowserStack now supports the official WebDriver W3C Protocol for Appium tests. In order to run your Appium tests using W3C protocol, update to a latest version of your Appium client library in case its not W3C-compliant.Additionally, all BrowserStack specific capabilities should be passed inside bstack:options as shown below.
Note: Any BrowserStack capability passed outside bstack:options will not be honoured.
- JSON wire protocol
- W3C Protocol
Configure capabilities
Code
Select core capabilities
Specify the app to test on
*
deviceName
deviceName
Select a device
iOS
We now support passing regular expressions in device and OS version capabilities on BrowserStack App Automate. Please refer to our documentation.
We now support testing on latest iOS minor versions on BrowserStack App Automate. Please refer our documentation
This device is not available in the free plan. Please upgrade to a paid plan.
app
Select a recently uploaded app
Enter the app_url or custom_id of an uploaded app
Select appium capabilities
A list of other apps to install prior to running test
Set the language of the app under test
Set device locale
otherApps
language
locale
Project details (Project, Build & Session name)
A unique identifier to logically group multiple builds together
A unique identifier to logically group multiple test sessions together
A unique identifer for your test session
projectName
buildName
sessionName
Test configuration
Test localhost / internal servers in your network
A list of apps to be installed in the middle of the test session
This capability can be used to modify the timeout value.
local
midSessionInstallApps
idleTimeout
Debugging options
Enable device logs
Enable video recording during your test
Enable interactive debugging during your test
Enable automatic screenshots for various appium commands
Enable Appium logs
Enable app profiling
deviceLogs
video
interactiveDebugging
debug
appiumLogs
appProfiling
Device features
Simulate the location of the device to particular GPS location
Change the screen orientation of the device
Test how your app behaves in specific countries
Note: IP Geolocation is available only in BrowserStack Enterprise Plan. View more details and list of 65+ supported countries.
Simulate custom network conditions
Disable animations on the device
Use your uploaded images or videos in the test
Note:
gpsLocation
deviceOrientation
geoLocation
customNetwork
disableAnimations
uploadMedia
- Supported format for images : JPG, JPEG, PNG, GIF, BMP. Max file size allowed for image is 10MB
- Supported format for videos: .mp4, .mov and .3gp. Max file size allowed for videos is 50MB.
- Supported format for non-media files: XLS, XLSX, DOC, DOCX, PDF, CSV, TXT. Max file size allowed is 15 MB.