博客
关于我
超容易!一文掌握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/

你可能感兴趣的文章
Objective-C实现datamatrix二维码识别 (附完整源码)
查看>>
Objective-C实现DateToDay 方法算法(附完整源码)
查看>>
Objective-C实现DBSCAN聚类算法(附完整源码)
查看>>
Objective-C实现DBSCAN聚类算法(附完整源码)
查看>>
Objective-C实现decision tree决策树算法(附完整源码)
查看>>
Objective-C实现degreeToRadian度到弧度算法(附完整源码)
查看>>
Objective-C实现depth first search深度优先搜索算法(附完整源码)
查看>>
Objective-C实现DES和3DES加解密算法(附完整源码)
查看>>
Objective-C实现des文件加密算法(附完整源码)
查看>>
Objective-C实现detectDirectedCycle检测定向循环算法(附完整源码)
查看>>
Objective-C实现detectUndirectedCycle检测无向循环算法(附完整源码)
查看>>
Objective-C实现deutsch jozsa算法(附完整源码)
查看>>
Objective-C实现DFS判断是否是二分图Bipartite算法(附完整源码)
查看>>
Objective-C实现DFS遍历或搜索图数据结构算法(附完整源码)
查看>>
Objective-C实现Diffie-Hellman算法(附完整源码)
查看>>
Objective-C实现Diffie—Hellman密钥交换(附完整源码)
查看>>
Objective-C实现Diffie—Hellman密钥交换(附完整源码)
查看>>
Objective-C实现Dijkstra最小路径算法(附完整源码)
查看>>
Objective-C实现dijkstra迪杰斯特拉算法(附完整源码)
查看>>
Objective-C实现dijkstra迪杰斯特拉算法(附完整源码)
查看>>