robotframework运行报after connection broken by ‘NewConnectionError(‘<urllib3.connection.HTTPConnection

本文讨论了RobotFramework结合Selenium进行Web自动化测试时遇到的问题。在使用SetSeleniumImplicitWait进行隐式等待时,由于网络不稳定导致连接错误。通过调整为显式Sleep方式,解决了脚本执行的稳定性问题。

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 等待时间后,脚本可正常执行

猜想:网络不稳定,设置最大的隐式等待时间过短

 

 

pip install ezodf Looking in indexes: http://rnd-mirrors.huawei.com/pypi/simple Collecting ezodf Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;<pip._vendor.urllib3.connection.HTTPConnection object at 0x03E1EBF0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed&#39;)&#39;: /pypi/simple/ezodf/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;<pip._vendor.urllib3.connection.HTTPConnection object at 0x03E48310>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed&#39;)&#39;: /pypi/simple/ezodf/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;<pip._vendor.urllib3.connection.HTTPConnection object at 0x03E48090>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed&#39;)&#39;: /pypi/simple/ezodf/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;<pip._vendor.urllib3.connection.HTTPConnection object at 0x03E48490>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed&#39;)&#39;: /pypi/simple/ezodf/ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;<pip._vendor.urllib3.connection.HTTPConnection object at 0x03E48730>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed&#39;)&#39;: /pypi/simple/ezodf/ Could not find a version that satisfies the requirement ezodf (from versions: ) No matching distribution found for ezodf 这个错是什么意思
06-28
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;<pip._vendor.urllib3.connection.HTTPConnection object at 0x000001E441947F28>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed&#39;,)&#39;: /simple/ Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;<pip._vendor.urllib3.connection.HTTPConnection object at 0x000001E44196F208>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed&#39;,)&#39;: /simple/ Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;<pip._vendor.urllib3.connection.HTTPConnection object at 0x000001E44196F400>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed&#39;,)&#39;: /simple/ Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;<pip._vendor.urllib3.connection.HTTPConnection object at 0x000001E440AF1828>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed&#39;,)&#39;: /simple/ Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by &#39;NewConnectionError(&#39;<pip._vendor.urllib3.connection.HTTPConnection object at 0x000001E440AF1E48>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed&#39;,)&#39;: /simple/
06-08
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值