Robotframework 派查姆:[错误号10054]
我尝试在PyCharm中运行一个简单的机器人框架脚本。以下是我的代码:Robotframework 派查姆:[错误号10054],robotframework,Robotframework,我尝试在PyCharm中运行一个简单的机器人框架脚本。以下是我的代码: *** Settings *** Documentation This is some basic info about the whole suite Library Selenium2Library *** Variables *** *** Test Cases *** User must sign in to check out [Documentation] This is some basic
*** Settings ***
Documentation This is some basic info about the whole suite
Library Selenium2Library
*** Variables ***
*** Test Cases ***
User must sign in to check out
[Documentation] This is some basic info about the test
[Tags] Smoke
Open Browser http://www.google.com.ua chrome
Close Browser
我用PyCharm定制了robot框架,就像在视频中一样,但当我在PyCharm终端运行此脚本时,所需的站点没有打开,我得到了下一个信息:
C:\Users\user\PycharmProjects\amazon>
C:\Users\user\PycharmProjects\amazon>pybot -d results tests/Amazon.robot
Amazon :: This is some basic info about the whole suite
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No browser is open
User must sign in to check out :: This is some basic info about th... | FAIL |
error: [Errno 10054]
------------------------------------------------------------------------------
Amazon :: This is some basic info about the whole suite | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output: C:\Users\user\PycharmProjects\amazon\results\output.xml
Log: C:\Users\user\PycharmProjects\amazon\results\log.html
Report: C:\Users\user\PycharmProjects\amazon\results\report.html
请告诉我,为什么这个脚本没有打开浏览器和它应该执行的操作,为什么我会出现这个错误。谢谢。如果您发布的代码实际上是您的代码,则您在
打开浏览器
行中的chrome
之前至少缺少一个空格。URL和浏览器之间必须有两个或多个空格
这可能不是唯一的问题,但肯定是个问题。您是否安装了chrome,您使用的是什么系统?生成的log.html中有什么内容?这里有更多的信息。