博客
关于我
超容易!一文掌握airtest自动化测试工具
阅读量:83 次
发布时间:2019-02-26

本文共 1589 字,大约阅读时间需要 5 分钟。

??Airtest??

??????????????????????????????????????Airtest???UI???????????????????????????Airtest???????????

??????????

?????????????????????????????????????????????????????????????????????????????

??Airtest???

??????UI??????????Airtest??????? 1. **??????**?????????????????????????????????????? 2. **????**??????????????????????????????????? 3. **????**?AirtestIDE???????????????????????????????????

??????

AirtestIDE?????????????????????????????? 1. ??Airtest???http://airtest.netease.com/???????Airtest??? 2. ????? - ????????????USB??? - Airtest??ADB???????????????????`adb devices`?????? 3. ??AirtestIDE??????????????

????????

?????????????????? - **??**?????????????? - **????**???`touch`?????????`sleep`??????? - **??**???`assert_exists`?????????`keyevent`???????

????????????

??????????????debug???????????????????????????? - debugmm.qq.com/?forcex5=true - debugtbs.qq.com - debugx5.qq.com?????????

????Python??Airtest??

Airtest????Python???????Python 3.5??????????????? 1. ??Python???????? 2. ??pip?????? ```bash pip install airtest pip install pocoui ``` 3. ??PyCharm????????????

??????????

from airtest.core.api import *  # ????  connect_device("Android:///")  # ????  start_app("com.pingan.certicationApp")  # ??????  touch(Template("image_of_a_button.png"))  # ????  swipe(Template("slide_start.png"), Template("slide_end.png"))  # ??  assert_exists(Template("success.png"))  # ????Home???  keyevent("BACK")  home()  # ????  uninstall("package_name_of_your_apk")

????????

??AllReportStartCMD.py???????????????????????????Jenkins??????????????????

??

????????????????????????????

转载地址:http://yyik.baihongyu.com/

你可能感兴趣的文章
Nginx 学习总结(17)—— 8 个免费开源 Nginx 管理系统,轻松管理 Nginx 站点配置
查看>>
Nginx 常用配置清单
查看>>
nginx 常用配置记录
查看>>
Nginx 我们必须知道的那些事
查看>>
Nginx 的 proxy_pass 使用简介
查看>>
Nginx 的配置文件中的 keepalive 介绍
查看>>
Nginx 负载均衡与权重配置解析
查看>>
Nginx 负载均衡详解
查看>>
nginx 配置 单页面应用的解决方案
查看>>
nginx 配置https(一)—— 自签名证书
查看>>
nginx 配置~~~本身就是一个静态资源的服务器
查看>>
Nginx 配置解析:从基础到高级应用指南
查看>>
nginx+Tomcat性能监控
查看>>
Nginx下配置codeigniter框架方法
查看>>
nginx总结及使用Docker创建nginx教程
查看>>
nginx报错:the “ssl“ parameter requires ngx_http_ssl_module in /usr/local/nginx/conf/nginx.conf:128
查看>>
nginx添加模块与https支持
查看>>
Nginx用户认证
查看>>
Nginx的Rewrite正则表达式,匹配非某单词
查看>>
Nginx的使用总结(一)
查看>>