美文网首页
自动化UI测试工具airtest 之V1.2 python代码连

自动化UI测试工具airtest 之V1.2 python代码连

作者: 大白python | 来源:发表于2019-07-12 21:36 被阅读0次
airtest project.jpg

一个编程大白,我在学自动化UI测试工具airtest。

自动化UI测试工具airtest学习步骤

  • 一、硬件软件的准备与连接
  • 二、学习AirtestIDE官方文档
  • 三、用Airtest对多台手机操控
  • 四、纯python代码操控手机
airtest project界面.jpg

python代码连接设备

AirtestIDE连接设备的方法已熟悉之后,现来学下python代码连接设备的方法。
AirtestIDE文档:在代码中连接设备

AirtestIDE中一行代码即可完成连接:

from airtest.core.api import *
device_1 = connect_device('android:///192.168.0.100:48887?cap_method=javacap&touch_method=adb')

ps:将ip:port换成自已的就可以了,简单吧?

相关文章

网友评论

      本文标题:自动化UI测试工具airtest 之V1.2 python代码连

      本文链接:https://www.haomeiwen.com/subject/ejyrkctx.html