本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
支援的 Appium 功能和命令
Device Farm 的 Appium 端點支援您在本機裝置上使用的大多數相同命令和所需功能,但有少數例外。下列清單顯示目前不支援的功能和命令。如果您的測試因為功能受限而無法如預期執行,請開啟支援案例以取得其他指導。
支援的功能
在 Device Farm 上建立 Appium 工作階段時,我們建議您擁有一組不同的功能,排除本機裝置特有的任何功能。在 Device Farm 上,如果設定某些不支援的功能,工作階段建立可能會失敗。這包括裝置特定的功能,例如 udid和 platformVersion。此外,不支援與 Android 上的 ChromeDriver 和 iOS 上的 WebDriverAgent 相關的特定功能,以及僅支援模擬器和模擬器的功能。
支援的命令
在實際 Android 和 iOS 裝置上正確執行的大多數 Appium 命令都會在 Device Farm 上如預期執行,但有下列排除項目:
Appium 裝置命令 (/appium/device)
install_appfinger_printsend_smsgsm_callgsm_signalgsm_voicepower_acpower_capacitynetwork_speedshake
Appium 執行方法和指令碼 (/execute)
installAppexecEmuConsoleCommandfingerprintgsmCallgsmSignalsendSmsgsmVoicepowerACpowerCapacitynetworkSpeedsensorSetinjectEmulatorCameraImageisGpsEnabledshakeclearAppclearKeychainsconfigureLocalizationenrollBiometricgetPasteboardinstallXCTestBundlelistXCTestBundleslistXCTestsInTestBundlerunXCTestsendBiometricMatchsetPasteboardsetPermissionstartAudioRecordingstartLogsBroadcaststartRecordingScreenstartScreenStreamingstartXCTestScreenRecordingstopAudioRecordingstopLogsBroadcaststopRecordingScreenstopScreenStreamingstopXCTestScreenRecordingupdateSafariPreferences