最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

pytest allure生成测试报告,报错:Error: pytest: reading from stdin while output is captured! Consider using -s

运维笔记admin3浏览0评论

程序在执行到验证码时,需要输入验证码,我设置的是input输入验证码,但是执行到这里就报错:OSError: pytest: reading from stdin while output is captured! Consider using -s



正常启动程序没有报错,用allure启动就报错了

解决方法:
添加了 ‘–capture=no’ 就没有报错了

–capture的具体讲解

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论