摘要: 背景:写UI自动化case遇到的问题-> app有个截屏的功能,做断言时需要进入手机sd卡查看是否截屏成功,在网上搜到的这个方法亲测能用# 执行shell 命令os.system('adb shell')cmds = [ "cd sdcard/Pictures", "ls", "exit",# 这是 阅读全文
posted @ 2021-03-29 15:31 正气的割草机 阅读(563) 评论(0) 推荐(0)
摘要: result=['normal', 'normal', 'test2', 'test1', 'test2', 'test1', 'normal', 'test1', 'normal', 'test2', 'test2', 'test2', 'test1', 'test2', 'test1', 'te 阅读全文
posted @ 2020-06-30 20:20 正气的割草机 阅读(311) 评论(0) 推荐(0)
摘要: f = open("uuuuu2","r+")ii= f.read()num=int(ii)def oooo(num): while True: num+=1 with open("uuuu2","w+") as f1: f1.write(str(num)) f1.close() return nu 阅读全文
posted @ 2020-06-28 20:14 正气的割草机 阅读(206) 评论(0) 推荐(0)