Desired Capabilities
Desired Capabilities are configuration parameters that tell Appium: "Which device, which app, and how the test should run."
They are sent before the test session starts.
Android Example
{
"platformName": "Android",
"deviceName": "Pixel_6",
"automationName": "UiAutomator2",
"app": "/apps/app.apk"
}
iOS Example
{
"platformName": "iOS",
"deviceName": "iPhone 15",
"automationName": "XCUITest",
"bundleId": "com.company.app"
}
Common Capabilities
platformNamedeviceNameautomationNameapp/bundleIdnoResetfullResetautoGrantPermissions
Proper capability configuration equals more stable tests.