嘗試從我的測試腳本登錄到機器人框架的log.html。我只是不能讓它工作...Python不會登錄到Robot框架log.html
我已閱讀文檔... http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#logging-information
,但仍然沒有中log.html內除了測試報告。我錯過了什麼?
我曾嘗試以下:
print "output: " + "something"
logger.console("something")
logging.info("something")
sys.__stdout__.write('Got arg %s\n' % "something")
print "something"
logger.info("output: " + "something")
的測試運行是這樣的:
*** Settings ***
Library Process
*** Test Cases ***
First test
${result} = Run Process python createCommunityTest/createCommunityTest.py
Should Be Equal As Integers ${result.rc} 0
'createCommunityTest'應該是一個帶機器人關鍵字的庫,還是一個腳本? –
這是一個python腳本。 – Jacob