本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
支持的 Appium 功能和命令
Device Farm 的 Appium 端点支持您在本地设备上使用的大多数命令和所需功能,但少数例外情况除外。以下列表显示了当前不支持哪些功能和命令。如果由于功能受限,您的测试无法按预期运行,请提交支持案例以获取更多指导。
支持的功能
在 Device Farm 上创建 Appium 会话时,我们建议使用一组不同的功能,其中不包括本地设备特有的任何功能。在 Device Farm 上,如果设置了某些不支持的功能,则会话创建可能会失败。这包括特定于设备的功能,例如udid和。platformVersion此外,不支持 Android 和 iOS WebDriverAgent 上与之相关的某些功能,以及仅在模拟器和模拟器上支持的功能。 ChromeDriver
支持的 命令
大多数在真实安卓和 iOS 设备上正常运行的 Appium 命令都将按预期在 Device Farm 上运行,但以下情况除外:
Appium 设备命令 () /appium/device
install_appfinger_printsend_smsgsm_callgsm_signalgsm_voicepower_acpower_capacitynetwork_speedshake
Appium 执行方法和脚本 () /execute
installAppexecEmuConsoleCommandfingerprintgsmCallgsmSignalsendSmsgsmVoicepowerACpowerCapacitynetworkSpeedsensorSetinjectEmulatorCameraImageisGpsEnabledshakeclearAppclearKeychainsconfigureLocalizationenrollBiometricgetPasteboardinstallXCTestBundlelistXCTestBundleslistXCTestsInTestBundlerunXCTestsendBiometricMatchsetPasteboardsetPermissionstartAudioRecordingstartLogsBroadcaststartRecordingScreenstartScreenStreamingstartXCTestScreenRecordingstopAudioRecordingstopLogsBroadcaststopRecordingScreenstopScreenStreamingstopXCTestScreenRecordingupdateSafariPreferences