WebDriverAgent原理

传输层: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的客户端。

待续

原文地址:https://www.cnblogs.com/csj2018/p/9698096.html