?????????????????????????????????????????????????????????????????·?????????????????????????λ?á?
????airtest??????????????????android??????????ios?????
???????????? https://github.com/netease/airtest
????star???е????????????????????????????
????????????????pythonд???
??????????????????
# ???????
import airtest
# ?????豸?? ???????д??airtest.log??
dev = airtest.Device('android://ybs56213'?? log='airtest.log')
# ???????
dev.click('start.png'?? duration=0.1)
# ???????
dev.drag('a.png'?? 'b.png')
# ???
dev.wait('finish.png')
??????
# ??????????
m = airtest.Monitor('android://ybs56213'?? 'com.netease.test')
# ???cpu?????????
cpu = m.cpu()
mem = m.memory()
# ??????????????У????0.5s
m.watch('filename.log'?? interval=0.5?? background=True)