

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 支持的 Appium 功能和命令
<a name="appium-endpoint-supported-caps-and-commands"></a>

Device Farm 的 Appium 端点支持您在本地设备上使用的大多数命令和所需功能，但少数例外情况除外。以下列表显示了当前不支持哪些功能和命令。如果由于功能受限，您的测试无法按预期运行，请提交支持案例以获取更多指导。

## 支持的功能
<a name="appium-endpoint-unsupported-capabilities"></a>

在 Device Farm 上创建 Appium 会话时，我们建议使用一组不同的功能，其中不包括本地设备特有的任何功能。在 Device Farm 上，如果设置了某些不支持的功能，则会话创建可能会失败。这包括特定于设备的功能，例如`udid`和。`platformVersion`此外，不支持 Android 和 iOS WebDriverAgent 上与之相关的某些功能，以及仅在模拟器和模拟器上支持的功能。 ChromeDriver 

## 支持的 命令
<a name="appium-endpoint-unsupported-commands"></a>

大多数在真实安卓和 iOS 设备上正常运行的 Appium 命令都将按预期在 Device Farm 上运行，但以下情况除外：

### Appium 设备命令 () `/appium/device`
<a name="appium-endpoint-unsupported-device-commands"></a>
+ `install_app`
+ `finger_print`
+ `send_sms`
+ `gsm_call`
+ `gsm_signal`
+ `gsm_voice`
+ `power_ac`
+ `power_capacity`
+ `network_speed`
+ `shake`

### Appium 执行方法和脚本 () `/execute`
<a name="appium-endpoint-unsupported-execute-methods"></a>
+ `installApp`
+ `execEmuConsoleCommand`
+ `fingerprint`
+ `gsmCall`
+ `gsmSignal`
+ `sendSms`
+ `gsmVoice`
+ `powerAC`
+ `powerCapacity`
+ `networkSpeed`
+ `sensorSet`
+ `injectEmulatorCameraImage`
+ `isGpsEnabled`
+ `shake`
+ `clearApp`
+ `clearKeychains`
+ `configureLocalization`
+ `enrollBiometric`
+ `getPasteboard`
+ `installXCTestBundle`
+ `listXCTestBundles`
+ `listXCTestsInTestBundle`
+ `runXCTest`
+ `sendBiometricMatch`
+ `setPasteboard`
+ `setPermission`
+ `startAudioRecording`
+ `startLogsBroadcast`
+ `startRecordingScreen`
+ `startScreenStreaming`
+ `startXCTestScreenRecording`
+ `stopAudioRecording`
+ `stopLogsBroadcast`
+ `stopRecordingScreen`
+ `stopScreenStreaming`
+ `stopXCTestScreenRecording`
+ `updateSafariPreferences`