Trying to log from my test script into the log.html of robot framework. I simply cannot make it work...
I have read the docs ... http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#logging-information
But still nothing inside the log.html besides the test reports. What am I missing?
I have tried the following:
print "output: " + "something"
logger.console("something")
logging.info("something")
sys.__stdout__.write('Got arg %s\n' % "something")
print "something"
logger.info("output: " + "something")
The test is run like this:
*** Settings ***
Library Process
*** Test Cases ***
First test
${result} = Run Process python createCommunityTest/createCommunityTest.py
Should Be Equal As Integers ${result.rc} 0
createCommunityTest
supposed to be a library with robot keywords, or is it a script? – Bryan OakleyProcess
that makes RF captures all outputs. But if you call your Python script as an RFLibrary
then you have more control. – MarkHu