AirtestProject / AirtestProject/Airtest
有时使用.bat文件运行脚本时会出现需要右键命令行窗口让激活脚本继续运行的情况
- 主要语言
- Python
- 星标
- 9.6k
- 派生
- 1.5k
- PR 合并指标
- 30 天内没有已合并 PR
描述
**(重要!问题分类)**
* 图像识别、设备控制相关问题 -> 按下面的步骤
**描述问题bug**
使用.bat文件执行脚本时,有时会出现在运行中时不时会暂停执行脚本的内容,我必须去右键点击命令行窗口,然后代码才会继续运行的情况,但在IDE内执行脚本不会出现暂停的情况。
**相关截图**
图片无法描述这个问题
**复现步骤**
1. 点击运行 xxx.bat文件,.bat文件内为“airtest run E:\AirtestIDE\xxx.air --device Android://127.0.0.1:5037/127.0.0.1:7555”这一语句,然后运行过程中时不时就会出现如上所描述的暂停情况。
**预期效果**
想要脚本内的循环运行到我所需要的次数,但是我得时不时去注意有没有被暂停了,若被暂停我需要手动去命令行用右键点击激活脚本继续运行。
**python 版本:** `python3.7.7`
**airtest 版本:** `1.2.6`
**设备:**
- 型号: MuMu模拟器
- 系统: [e.g. Android 6.0.1]
**其他相关环境信息**
.bat文件启动脚本会出现这种暂停情况,AirtestIDE内启动脚本则不会。
贡献指南
这个仓库没有索引到贡献指南
调研方向
Reproduce the issue using the reported .bat command, Python 3.7.7, Airtest 1.2.6, and the MuMu Android emulator, then compare it with running the same script in AirtestIDE. Start from the command-line execution entry point and check when the batch-run process pauses. Done means the requested loop completes without requiring a right-click in the command window.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, python
- 领域
- cli, mobile-dev, testing
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100