傳輸層:HTTP/HTTPS/HSF/Socket
安全性:HTTP/HTTPS
功能、單元
性能-限流、加服務器
目的:穩定的服務的TPS摸高測試(短時間的極限,不可持續)
API接口測試-施壓-服務端監控(CPU百分比、內存、網絡(帶寬、請求隊列))
計算密集型關注CPU,80%之后,CPU由於溫度提高,性能下降
內存95%
網絡 98%
集群:自動化腳本、線上引優(復制,直接,回放)
整體框架設計
WebDriverAgent
GitHub的描述:
WebDriverAgent is a WebDriver server implementation for iOS that can be used to remote control iOS devices. It allows you to launch & kill applications, tap & scroll views or confirm view presence on a screen. This makes it a perfect tool for application end-to-end testing or general purpose device automation. It works by linking XCTest.framework and calling Apple's API to execute commands directly on a device. WebDriverAgent is developed and used at Facebook for end-to-end testing and is successfully adopted by Appium.
WebDriverAgent在iOS端實現了一個WebDriverServer,可用於遠程控制iOS設備。它允許您啟動和終止應用程序,點擊和滾動視圖或確認屏幕上的視圖狀態。這使其成為應用端到端測試或通用設備自動化的完美工具。它通過鏈接XCTest.framework和調用Apple的API來直接在設備上執行命令。WebDriverAgent在Facebook上開發並用於端到端測試,並被Appium成功采用。
特性:
- 適用於設備和模擬器
- 實現大部分WebDriver規范
- 實現Mobile JSON Wire Protocol Spec的一部分
- USB支持設備
- 具有友好用戶界面的Inspector 端點,用於檢查當前設備狀態
- 易於開發,因為它可以通過Xcode直接啟動和調試
- 尚不支持,但與tvOS和OSX一起使用
WDA Client
WDA Client是基於WebDriverAgent實現的WDA的客戶端。