[iOS][工具]tidevice

424 阅读1分钟

项目地址:

tidevice github

查看设备列表

$ tidevice list
$ tidevice list --json

查看设备信息

$ tidevice info
# 查看设备电源信息
$ tidevice info --domain com.apple.mobile.battery --json

安装iOS的ipa包

$ tidevice install /path/xxx.ipa

/path/xxx.ipa是ipa包的路径

Run XCTest

请先确保手机上已经安装有WebDriverAgent应用

$ tidevice xctest -B com.testtools.xctrunner
$ tidevice xctest -B  com.testtools.xctrunner -e USB_PORT:8200 --debug

文件操作

$ tidevice fsync ls  /DCIM/

查看性能数据

$ tidevice perf -B com.beeasy.shopee.id.enterprise -o fps

参考文章:

跨平台iOS自动化测试工具——tidevice

实时可视化 iOS 性能数据

tidevice 开源:不依赖 Xcode 也能启动 WDA

github.com/jlintxia/iO…