iOS WebDriverAgent

iOS自动化测试
https://github.com/appium/WebDriverAgent.git

网易Airtest
https://airtest.doc.io.netease.com/

下载WebDriverAgent

git clone https://github.com/appium/WebDriverAgent.git

进入项目安装 node 依赖

npm inatall

修改签名,允许代码

运行 WebDriverAgentRunner

电脑无法访问手机 8100端口接口方案:

安装 libimobiledevice

brew install libimobiledevice

用 iproxy命令转端口

iproxy 8100 8100
这样操作后,就可以用 http://127.0.0.1:8100 的地址访问了

#!/usr/bin/python3

--coding:utf-8--

import wda
wda.DEBUG = True
wda.HTTP_TIMEOUT = 180.0
wda.DEVICE_WAIT_TIMEOUT = 180.0

Enable debug will see http Request and Response

wda.DEBUG = True

c = wda.Client(‘http://127.0.0.1:8100’)

#c.app_current()

get env from $DEVICE_URL if no arguments pass to wda.Client

http://localhost:8100 is the default value if $DEVICE_URL is empty

#c.press(“volumeUp”)
#c.press_duration(“volumeUp”, 1) # 长按1s
#c.press(“volumeDown”)
#c.press_duration(“volumeDown”, 1)

c.home()
c(name=“相机”).get(timeout=3.0).tap()
c.status()
c.app_current()
c.window_size()
c(name=“人像”).get(timeout=3.0).tap()

#c.home()
c.click(180, 724)
WDA
pip3 install -U facebook-wda
/Users/mac047/Library/Python/3.9/lib/python/site-packages/urllib3/init.py:34:
NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+,
currently the ‘ssl’ module is compiled with ‘LibreSSL 2.8.3’.
See: https://github.com/urllib3/urllib3/issues/3020
pip3 uninstall urllib3

pip3 install urllib3==1.23
可视化UI

安装

pip3 install -U weditor

打开软件

python3 -m weditor

链接设备

输入:http://127.0.0.1:8100
获取应用已安装的包名称
brew install ideviceinstaller

ideviceinstaller -l
其他资料

字节跳动的自动化暴力测试工具:Fastbot_iOS

https://github.com/bytedance/Fastbot_iOS

https://github.com/appium/appium

Facebook-wda
https://blog.51cto.com/u_15441270/4713175
https://github.com/openatx/facebook-wda

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值