## Appium 支持的平臺
Appium 支持多種平臺以及各種測試方式(native,hybrid,web,真機,模擬器,等等...)。寫這份文檔是為了搞清楚所支持平臺的版本,以及所需的條件。
### iOS 平臺支持
iOS自動化支持兩種driver
* The [XCUITest Driver](../drivers/ios-xcuitest.md)
* The [UIAutomation Driver](../drivers/ios-uiautomation.md)(已棄用)
請查閱相應的driver文檔獲取iOS 平臺下所需的必備條件和安裝說明
* 版本:9.0 及以上版本(Appium一般支持最新的兩個iOS版本)
* 設備:iPhone,iPad以及tvOS的模擬器和真機
* 是否支持 Native 應用:支持。如在模擬器執行,需要 debug 版本的 .app 包,在真機上運行則需要已簽名的 .ipa 包。底層的框架是由蘋果的 [XCUITest](https://developer.apple.com/reference/xctest) (或 [UIAutomation](https://web.archive.org/web/20160904214108/https://developer.apple.com/library/ios/documentation/DeveloperTools/Reference/UIAutomationRef/) 支持更舊的版本) 所提供支持
* 是否支持移動端瀏覽器:支持。我們通過移動端的 Safari 進行自動化測試。對于真機,`ios-webkit-remote-debugger` 工具是必須的。可惜的是對于 Safari 的 native 部分的自動化目前還不支持。更多介紹請查看 [mobile web doc](../writing-running-appium/web/mobile-web.md)(English)。
* 是否支持 Hybrid 應用:支持。如使用真機,ios-webkit-remote-debugger 工具也是必須的。更多介紹請查看 [hybrid doc](../writing-running-appium/web/hybrid.md)。
* 是否支持在一個 session 中多個應用的自動化:不支持
* 是否支持多設備同時執行自動化:不支持
* 是否支持供應商應用或者第三方應用的自動化:僅支持在模擬器上對供應商應用(設置,地圖,等等...)進行自動化。若在 iOS 10 及以上的版本,你同樣可以在 home 界面做自動化。
* 是否支持自定義的、非標準的 UI 控件的自動化:只支持小部分。你需要在控件設置可識別的信息,從而對一些元素進行一些基礎的自動化操作。
### Android 平臺支持
Android自動化支持兩種driver
* The [UiAutomator2 Driver](../drivers/android-uiautomator2.md)
* The [UiAutomator Driver](../drivers/android-uiautomator.md)(已棄用)
請查閱相應driver的文檔獲取Android 平臺下所需的必備條件和安裝說明
* 版本:4.3 及以上版本
* 4.3 以及更高的版本是通過 Appium 自己的 [UiAutomator and UiAutomator2](http://developer.android.com/tools/testing-support-library/index.html#UIAutomator) 庫實現。UiAutomator是默認的driver。
* 設備:Android 模擬器以及 Android 真機
* 是否支持 Native 應用:支持
* 是否支持移動端瀏覽器:支持。Appium 綁定了一個 [Chromedriver](http://chromedriver.chromium.org) 服務,使用這個代理服務進行自動化測試。在4.3 版本,只能在官方的 Chrome 瀏覽器或者 Chromium 執行自動化測試。在 4.4 及更高版本,可以在內置的 “瀏覽器” 應用上進行自動化了。Chrome/Chromium/Browser需要提前安裝在被測設備上。更多介紹請查看 [mobile web doc](../writing-running-appium/web/mobile-web.md)(English)。
* 是否支持 Hybrid 應用:支持。更多介紹請查閱 [hybrid doc](../writing-running-appium/web/hybrid.md)。
* 默認的 Appium 自動化后臺:支持 4.4 以及更高版本
* 是否支持多個 app 在同一個 session 中自動化:支持
* 是否支持多個設備同時進行自動化:支持,但是在啟動 Appium的時候,對于以下啟動參數必須使用不同的端口號,`--port`, `--bootstrap-port` 和/或者 `--chromedriver-port`. 更多關于啟動參數的介紹,請查看 [server args doc](../writing-running-appium/server-args.md)。
* 支持供應商應用或第三方引用:支持
* 支持自定義的、非標準的 UI 控件的自動化:不支持
### Windows 桌面支持
* 詳細信息請查看[Windows Driver](../drivers/windows.md)(English)
本文由 [thanksdanny](https://testerhome.com/thanksdanny) 翻譯,由 [lihuazhang](https://github.com/lihuazhang) 校驗。
- 關于TesterHome和MTSC
- 關于Appium
- 簡介
- Appium 客戶端
- 入門指南
- 已支持的平臺
- API 文檔
- Appium驅動
- XCUITest (iOS)
- XCUITest Real Devices (iOS)
- UIAutomation (iOS)
- UIAutomation Safari Launcher (iOS)
- UIAutomator (Android)
- UIAutomator2 (Android)
- Espresso (Android)
- Windows
- Mac
- Appium命令
- Status
- Execute Mobile Command
- Session
- Create
- End
- Get Session Capabilities
- Go Back
- Screenshot
- Source
- Timeouts
- Timeouts
- Implicit Wait
- Async Script
- Orientation
- Get Orientation
- Set Orientation
- Geolocation
- Get Geolocation
- Set Geolocation
- Logs
- Get Log Types
- Get Logs
- Events
- Log event
- Get events
- Settings
- Update Settings
- Get Device Settings
- Settings
- Update Settings
- Get Device Settings
- Execute Driver Script
- Device
- Activity
- Start Activity
- Current Activity
- Current Package
- App
- Install App
- Is App Installed
- Launch App
- Background App
- Close App
- Reset App
- Remove App
- Activate App
- Terminate App
- Get App State
- Get App Strings
- End Test Coverage
- Clipboard
- Get Clipboard
- Set Clipboard
- Emulator
- Power AC
- Power Capacity
- Files
- Push File
- Pull File
- Pull Folder
- Interactions
- Shake
- Lock
- Unlock
- Is Locked
- Rotate
- Keys
- Press keycode
- Long press keycode
- Hide Keyboard
- Is Keyboard Shown
- Network
- Toggle Airplane Mode
- Toggle Data
- Toggle WiFi
- Toggle Location Services
- Send SMS
- GSM Call
- GSM Signal
- GSM Voice
- Network Speed
- Performance Data
- Get Performance Data
- Performance Data Types
- Screen Recording
- Start Screen Recording
- Stop Screen Recording
- Simulator
- Perform Touch ID
- Toggle Touch ID Enrollment
- System
- Open Notifications
- System Bars
- System Time
- Display density
- Authentication
- Finger Print
- Element
- Find Element
- Find Elements
- Actions
- Click
- Send Keys
- Clear
- Attributes
- Text
- Name
- Attribute
- Selected
- Enabled
- Displayed
- Location
- Size
- Rect
- CSS Property
- Location in View
- Other
- Submit
- Active Element
- Equals Element
- Context
- Get Context
- Get All Contexts
- Set Context
- Interactions
- Mouse
- Move To
- Click
- Double Click
- Button Down
- Button Up
- Touch
- Single Tap
- Double Tap
- Move
- Touch Down
- Touch Up
- Long Press
- Scroll
- Flick
- Multi Touch Perform
- Touch Perform
- W3C Actions
- Web
- Window
- Set Window
- Close Window
- Get Handle
- Get Handles
- Get Title
- Get Window Size
- Set Window Size
- Get Window Position
- Set Window Position
- Maximize Window
- Navigation
- Go to URL
- Get URL
- Back
- Forward
- Refresh
- Storage
- Get All Cookies
- Set Cookie
- Delete Cookie
- Delete All Cookies
- Frame
- Switch to Frame
- Switch to Parent Frame
- Execute Async
- Execute
- 編寫 & 運行Appium腳本
- Running Tests
- Desired Capabilities
- The --default-capabilities flag
- Finding Elements
- Touch Actions
- CLI Arguments
- Server Security
- Web/Web Views
- Mobile Web Testing
- Automating Hybrid Apps
- Using ios-webkit-debug-proxy
- Using Chromedriver
- Image Comparison
- iOS
- Low-Level Insights on iOS Input Events
- XCUITest Mobile Gestures
- XCUITest Mobile App Management
- iOS Pasteboard Guide
- iOS Predicate Guide
- iOS Touch ID Guide
- iOS Install Certificate
- tvOS support
- Pushing/Pulling files
- Audio Capture
- Android
- Low-Level Insights on Android Input Events
- UiSelector Guide
- Espresso Datamatcher Guide
- Android Code Coverage Guide
- Activities Startup Troubleshooting Guide
- How To Execute Shell Commands On The Remote Device
- Android Device Screen Streaming
- How To Emulate IME Actions Generation
- How To Test Android App Bundle
- Other
- Reset Strategies
- Network Connection Guide
- Using Unicode with Appium
- Troubleshooting
- Tutorial
- Swipe Tutorial
- Screen
- Element
- Partial screen
- Simple
- Multiple scroll views
- Add scroll layout
- Tricks and Tips
- Screen
- Element
- Element search
- Fast
- Slow
- Guide
- 進階概念
- 定位圖像中的元素
- 使用定位元素的插件
- 遷移到 XCUITest
- 在 Appium 中使用 Selenium Grid
- Appium Logs Filtering
- 跨域 iframes
- 使用自定義 WDA 服務器
- 使用不同版本的 Xcode 運行
- The Event Timings API
- 并行測試的設置
- The Settings API
- Memory Collection
- 向Appium項目做貢獻
- 從源代碼運行 Appium
- 開發者概述
- 標準開發命令
- Appium 風格指南
- 如何編寫文檔
- Appium 包結構
- 鳴謝