airtest
万土的嘎嘎
这个作者很懒,什么都没留下…
展开
-
airtest+poco使用excel实现数据分离
excel实现数据驱动原创 2022-04-15 16:19:56 · 779 阅读 · 0 评论 -
python读取excel中图片(嵌入单元格图片不可)
前置:准备3个sheet页,各多张图片注意事项:打开的excel要提前关闭,不然会报错from PIL import ImageGrabimport win32com.client as win32ex=win32.gencache.EnsureDispatch('Excel.Application')wb=ex.Workbooks.Open(r'E:\wt\text.xlsx')num=1for i in wb.Worksheets: for n,shape in en...原创 2022-04-14 15:38:18 · 3631 阅读 · 0 评论 -
python读取excel的两种方法
1.pandas,优点简单,缺点是多个sheet无法读取,只能读取sheet1前置:pip install openpyxlindex_col代表第一列的索引,例如:index_col=1,第二列首先打印显示,其余列顺序顺移。header代表从首行的索引,例如:header=1,第二行开始打印显示,第一行隐藏。2.xlrd,优点可以选择不同的分页进行展示。读取sheet:sheet=ex.sheets()[0]--索引顺序sheet=ex.sheet_by_name("首.原创 2022-04-13 10:30:14 · 2657 阅读 · 0 评论 -
airtest 发送报告到邮箱
airtest发送报告到邮箱阿里企业邮箱,password=邮箱密码host=smtp.mxhichina.com,其它报错!发送邮件列表支持多个mail[,,,]3.最后收到邮件,发送成功4.报错:smtplib.SMTPAuthenticationError: (526, b'Authentication failure[0]')原因自行排查:1、服务器错误2、用户名错误3、用户名密码不匹配。我这是因为pa原创 2022-04-11 14:29:53 · 1027 阅读 · 0 评论 -
No module named ‘xlrd‘
问题:已经pip install xlrd过,import xlrd 报错,却发现安装在了c盘,实际执行环境在d盘。解决方案:进入d盘scripts文件夹,再执行一次命令安装成功再次import xlrd不报错原创 2022-04-08 16:40:23 · 811 阅读 · 0 评论 -
Module use of python36.dll conflicts with this version of Python
场景:airtest 是python36.dll,python是python39.dll在aritest文件目前下cmd执行 python -m run airtest 报错dll冲突解决办法:切换到其它目录再执行,即可避免使用python36.dll。原创 2021-08-27 11:36:17 · 3692 阅读 · 0 评论 -
python执行.air脚本
python -m airtest run +脚本地址 --device Android:///举例:python -m airtest run D:\scripts\clickTest.air --device Android:///7aab404参考文档:https://blog.csdn.net/weixin_45005677/article/details/112515311原创 2021-08-27 11:19:52 · 500 阅读 · 0 评论 -
poco遇到的问题及解决办法
1.执行时报错:No module named 'poco.drivers'pip install airtestpip install airtest_seleniumpip install pynput后都不行,发现文件名poco.py重名,修改名称后就OK原创 2021-08-10 14:45:42 · 1380 阅读 · 1 评论 -
airtest 遇到的问题及解决方法
1.连接设备报错:'str' object has no attribute 'decode'解决方法:下载安装python就解决了2.连接设备,设备状态:offline解决方法:换根能传输内容的数据线3.执行过程中经常卡顿,多用sleep、wait4.keyevent("HOME") 回到主屏幕keyevent("back") 返回上一步keyevent("del") 删除一位输入的内容...原创 2021-08-04 17:18:53 · 7975 阅读 · 1 评论