

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 支援的 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 上的 ChromeDriver 和 iOS 上的 WebDriverAgent 相關的特定功能，以及僅支援模擬器和模擬器的功能。

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

在實際 Android 和 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`