尝试从我的测试脚本登录到机器人框架的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