博客
关于我
超容易!一文掌握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实现graph list图列算法(附完整源码)
查看>>
Objective-C实现GraphEdge图边算法(附完整源码)
查看>>
Objective-C实现GraphVertex图顶点算法(附完整源码)
查看>>
Objective-C实现greatest common divisor最大公约数算法(附完整源码)
查看>>
Objective-C实现greedy coin change贪心硬币找零算法(附完整源码)
查看>>
Objective-C实现greedy knapsack贪婪的背包算法(附完整源码)
查看>>
Objective-C实现GridGet算法(附完整源码)
查看>>
Objective-C实现half adder半加器算法(附完整源码)
查看>>
Objective-C实现hamiltonianCycle哈密尔顿图算法(附完整源码)
查看>>
Objective-C实现hamming code汉明码算法(附完整源码)
查看>>
Objective-C实现hamming numbers汉明数算法(附完整源码)
查看>>
Objective-C实现hammingDistance汉明距离算法(附完整源码)
查看>>
Objective-C实现hanning 窗(附完整源码)
查看>>
Objective-C实现hanoiTower汉诺塔算法(附完整源码)
查看>>
Objective-C实现hardy ramanujana定理算法(附完整源码)
查看>>
Objective-C实现harmonic series调和级数算法(附完整源码)
查看>>
Objective-C实现harris算法(附完整源码)
查看>>
Objective-C实现HashTable哈希表算法(附完整源码)
查看>>
Objective-C实现haversine distance斜距算法(附完整源码)
查看>>
Objective-C实现heap sort堆排序算法(附完整源码)
查看>>