Automation Testing of Mobile App
Case 待补充
- cmd执行
mitmdump -p 8889 -s fyy-app-autotesting/catchevents/check_events.py
# check_events.py
# ST.all_events = ['filto_launch', ] #填写需要验证是否存在的全部事件
ST.all_events = all_events.get_all_events("resource/综合查询_2021-09-06 10_54.xlsx") # 更新为使用xlsx文件读取全部事件
- 连接代理
- 手机代理网络到:ip:你的电脑ip, 端口:8889
- 下载证书:在手机浏览器中打开网址 mitm.it,选择对应的证书下载安装
- 操作业务,触发事件,shell中打印关键日志
- 结果
-
/report/now_event.txt 为已检测到的事件
-
/report/lost_event.txt 为缺少的事件