0

我正在尝试使用RobotFramework 模板来测试互联网网站,但出现以下错误:

$ robot_cli $ROBOT_OPTIONS --variable BROWSER:${ROBOT_BROWSER} --outputdir "rf_reports/" --xunit robot-junit.xml $ROBOT_TESTS_DIR
[INFO] Upstream environment_url.txt file found: use base url https://toscatoolbox.orange.com/
==============================================================================
Statistics                                                                    
==============================================================================
Statistics.Get StatsPortailTOSCAToolbox                                       
==============================================================================
Get_Stats_TOSCAToolboxPortal                                          [ WARN ] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4eb7677b20>: Failed to establish a new connection: [Errno 110] Operation timed out')': /wd/hub/session
[ WARN ] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4eb7677c40>: Failed to establish a new connection: [Errno 110] Operation timed out')': /wd/hub/session
[ WARN ] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4eb7677d90>: Failed to establish a new connection: [Errno 110] Operation timed out')': /wd/hub/session
| FAIL |
MaxRetryError: HTTPConnectionPool(host='10.170.227.195', port=5555): Max retries exceeded with url: /wd/hub/session (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f4eb7677ee0>: Failed to establish a new connection: [Errno 110] Operation timed out'))
------------------------------------------------------------------------------
Statistics.Get StatsPortailTOSCAToolbox                               | FAIL |
1 test, 0 passed, 1 failed
==============================================================================
Statistics                                                            | FAIL |
1 test, 0 passed, 1 failed
==============================================================================
4

1 回答 1

0

您是否使用BASE_URLRobotFramework 脚本中的变量来检索自动评估的基本 URL?

看看这个例子

因为这里的 RobotFramework 似乎正在尝试在 上打开连接10.170.227.195:5555,这似乎与https://toscatoolbox.orange.com/

于 2021-07-06T08:58:08.657 回答