Robotframework HTTPSConnectionPool带有额外的/
我在Eclipse中使用的代码file.robot是Robotframework HTTPSConnectionPool带有额外的/,robotframework,urllib3,Robotframework,Urllib3,我在Eclipse中使用的代码file.robot是 ${resp}= Get Request localhost http://localhost:8080/UI/core/other/htmlreport/ params=apikey=${API_KEY} 在这一点上,没有额外的字符 但答案是额外的/ ConnectionError: HTTPSConnectionPool(host='localhost', port=443): Max retries excee
${resp}= Get Request localhost http://localhost:8080/UI/core/other/htmlreport/ params=apikey=${API_KEY}
在这一点上,没有额外的字符
但答案是额外的/
ConnectionError: HTTPSConnectionPool(host='localhost', port=443): Max retries exceeded with url: /http://localhost:8080/UI/core/other/htmlreport/?apikey=d9i7qom4p7m12rd2eqf2612s95 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000021C6BD54D90>: Failed to establish a new connection: [WinError 10061] Kan geen verbinding maken omdat de doelcomputer de verbinding actief heeft geweigerd'))
文档并不完全清楚,但您可以先创建一个会话,然后使用该会话调用
Get Request
Create Session localhost http://localhost:8080
${resp}= Get request localhost /UI/core/other/htmlreport/
您可以在代码中看到,它希望会话有一个架构和主机,而
uri
参数是路径-原因是会话有什么?谢谢,至少现在我知道刀子是从哪里来的。。。
Create Session localhost http://localhost:8080
${resp}= Get request localhost /UI/core/other/htmlreport/