2021年12月2日

用subprocess执行adb shell命令怎么终止

摘要: 问题: 在程序中使用 adb shell top 命令获取 数据时,程序一直运行无法停止 原命令: subprocess.run(f'adb shell COLUMNS=200 top -d 2 | grep "com.xxx.xxx" > 123.txt', shell=True) 解决思路: l 阅读全文

posted @ 2021-12-02 21:41 阿虾 阅读(592) 评论(0) 推荐(0) 编辑

windows端搭建iOS自动化测试环境

摘要: 1、手机必须安装WebDriverAgent两种安装方式:1.通过xcode安装2.通过命令安装安装方式:https://testerhome.com/topics/7220 2、安装tidevice库, 支持python3.6+ 3、安装facebook-wda库,主要用于iOS自动化 windo 阅读全文

posted @ 2021-12-02 18:42 阿虾 阅读(685) 评论(0) 推荐(0) 编辑

解决django使用ajax跨域问题

摘要: 添加中间件 django-cors-headers pip install django-cors-headers 1、添加app INSTALLED_APPS = ( ... 'corsheaders', ... )2、添加中间件 MIDDLEWARE = [ # Or MIDDLEWARE_CL 阅读全文

posted @ 2021-12-02 18:41 阿虾 阅读(127) 评论(0) 推荐(0) 编辑

导航