Updates:
Summary: Support capturing stdout and stderr when running Robot and Rebot programmatically
        Owner: pekka.klarck
        Labels: -Type-Defect Type-Enhancement
        Blockedon: -826

Comment #10 on issue 59 by pekka.klarck: Support capturing stdout and stderr when running Robot and Rebot programmatically
http://code.google.com/p/robotframework/issues/detail?id=59

This is embarrassing. After a little bit investigation we realized that implementing this feature is very simple and does not require larger changes planned for running APIs (issue 826).

This will be implemented so that both robot.run and robot.rebot methods accept stdout and stderr as keyword arguments. They must be open file objects and StringIO works fine:

    from robot import run

    with open('output.txt', 'w') as output:
        run('tests.txt', stdout=output, stderr=output)


This issue has been open for ages as a defect but I change this now to enhancement.

Reply via email to