-1
我嘗試運行PyCharm.Here一個簡單的機器人框架的腳本是我的代碼:Pycharm:[錯誤10054]
*** 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因爲它是在視頻,但是當我運行此腳本在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,你在什麼系統上? –
生成的log.html中有什麼?那裏有更多的信息。 –