Appium翻译篇【 appium/docs/en/about-appium/platform-support.md 】

文章目录

  • Appium Platform Support
  • iOS Support
  • Android Support
  • Windows Desktop Support

Appium Platform Support

Appium supports a variety of platforms and testing modalities (native, hybrid, web, real devices, simulators, etc…). This document is designed to make explicit the level of support and requirements for each of these.

Appium支持多种平台和测试模式(原生的、混合的、web的、真机、模拟器等等)。本文档旨在明确支持的平台版本和对应的需求。

iOS Support

iOS automation is supported with two drivers:

  • The XCUITest Driver
  • The (deprecated) UIAutomation Driver

iOS自动化支持两种驱动:

  • XCUITest Driver
  • UIAutomation Driver(不推荐)

Please refer to these driver docs for setup instructions.

  • Versions: 9.0 and up (as a rule, Appium supports the latest two iOS versions)
  • Devices: Simulator and real device for iPhone, iPad and tvOS
  • Native app support: Yes, with debug version of .app (simulator), or correctly-signed .ipa (real devices). Underlying support is provided by Apple’s XCUITest (or UIAutomation for older versions) framework.
  • Mobile web support: Yes, via automation of mobile Safari. For real devices, ios-webkit-remote-debugger is required, and automation of native aspects of the Safari interface is not possible. See the mobile web doc for instructions.
  • Hybrid support: Yes. For real devices, ios-webkit-remote-debugger is required. See the hybrid doc for instructions.
  • Support for automating multiple apps in one session: No
  • Support for automating multiple devices simultaneously: No
  • Support for automating vendor-provided or third-party apps: Only vendor-provided apps (Preferences, Maps, etc…), and only on the simulator. For iOS 10+, you can automate the home screen as well.
  • Support for automating custom, non-standard UI controls: Minimal. You need to set accessibility information on the control which enables some basic automation.

请参考这些驱动程序文档了解安装说明。

  • 版本:9.0及以上(Appium通常支持最新的两个iOS版本)
  • 设备:iPhone, iPad 和 tvOS的模拟器或真机
  • 是否支持原生应用程序:支持。模拟器需要debug版本的.app包,真机需要正确签名的.ipa包。底层框架是由苹果的XCUITest(或 UIAutomation 支持更旧的版本)提供的。
  • 是否支持移动web:支持。通过移动端Safari进行自动化测试。真机需要ios-webkit-remote-debugger工具,但对于 Safari 的 native 部分的自动化目前还不支持。有关说明,请参阅mobile web doc。
  • 是否支持混合应用:支持。真机需要ios-webkit-remote-debugger工具。有关说明,请参阅 hybrid doc。
  • 是否支持在一个会话中自动化多个应用程序:不支持
  • 是否支持同时自动化多个设备:不支持
  • 是否支持自动化供应商提供的或第三方应用程序:仅在模拟器上支持供应商提供的应用程序(设置、地图等)的自动化。对于iOS 10+,你也可以自动控制主屏幕。
  • 是否支持自动化自定义、非标准UI控件::只支持小部分。需要在控件上设置可访问性信息,从而启用一些基本的自动化。

Android Support

Android automation is supported with two drivers:

  • The UiAutomator2 Driver
  • The (deprecated) UiAutomator Driver

Android自动化支持两种驱动:

  • UiAutomator2 Driver
  • UiAutomator Driver(不推荐)

Please refer to these driver docs for setup instructions.

  • Versions: 4.3 and up
  • Versions 4.3 and up are supported via Appium’s UiAutomator and UiAutomator2 libraries. UiAutomator is the default driver.
  • Devices: Android emulators and real Android devices
  • Native app support: Yes
  • Mobile web support: Yes. Automation is effected using a bundled Chromedriver server as a proxy. With 4.3, automation works on official Chrome browser or Chromium only. With 4.4+, automation also works on the built-in “Browser” app. Chrome/Chromium/Browser must already be installed on the device under test. See the mobile web doc for instructions.
  • Hybrid support: Yes. See the hybrid doc for instructions.
  • With default Appium automation backend: versions 4.4 and up
  • Support for automating multiple apps in one session: Yes
  • Support for automating multiple devices simultaneously: Yes, though Appium must be started using different ports for the server parameters --port, --bootstrap-port and/or -chromedriver-port. See the server args doc for more information on these parameters.
  • Support for automating vendor-provided or third-party apps: Yes
  • Support for automating custom, non-standard UI controls: No

请参考这些驱动程序文档了解安装说明。

  • 版本:4.3及以上
    • 通过Appium的UiAutomator和UiAutomator2库支持4.3及以上版本。UiAutomator是默认的驱动程序。
  • 设备:Android模拟器或真机
  • 是否支持原生应用程序:支持。
  • 是否支持移动web:支持。使用捆绑的Chromedriver服务器作为代理实现自动化。在4.3版本中,自动化只能在官方Chrome浏览器或Chromium上运行。对于4.4及以上版本,自动化也可以在内置的“浏览器”应用程序上运行。Chrome/Chromium/Browser必须已经安装在测试设备上。有关说明,请参阅mobile web doc。
  • 是否支持混合应用:支持。有关说明,请参阅hybrid doc 。
    • 默认Appium自动化后端:版本4.4及以上。
  • 是否支持在一个会话中自动化多个应用程序:支持。
  • 是否支持同时自动化多个设备:支持。即使 Appium 在开始的时候,使用不同的端口号作为服务器参数,–port, --bootstrap-port (或者 --selendroid-port) 还有 --chromedriver-port. 更多介绍请查看 server args doc。
  • 是否支持自动化供应商提供的或第三方应用程序:支持。
  • 是否支持自动化自定义、非标准UI控件:不支持

Windows Desktop Support

See the Windows Driver doc for details

有关详细信息,请参阅Windows Driver 文档

你可能感兴趣的:(Appium翻译篇,程序人生,经验分享,其他)