robotframework脚本有时运行正常,有时运行报[ WARN ] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x04580090>: Failed to establish a new connection: [Errno 10061] ',)': /session/167327a1edab545f090631f90b251853/timeouts
脚本使用了Set Selenium Implicit Wait隐式等待,修改为使用sleep 等待时间后,脚本可正常执行
猜想:网络不稳定,设置最大的隐式等待时间过短
本文讨论了RobotFramework结合Selenium进行Web自动化测试时遇到的问题。在使用SetSeleniumImplicitWait进行隐式等待时,由于网络不稳定导致连接错误。通过调整为显式Sleep方式,解决了脚本执行的稳定性问题。
493

被折叠的 条评论
为什么被折叠?



