How is the output.xml file generated in robot framework
<p>I am currently working on adding support for execution of Robot scripts from our home-grown Automation Framework. I understand that Robot, by default, generates the output.xml file upon the execution of the Robot scripts.</p>

<p>So as to maintain uniformity, I am exploring the option of using the Robot Logging module for our custom automation scripts as well. On checking the source code, I see there is a Logger class under <code>robot.output</code> directory which logs messages on the console. However, I want to generate the same log and report files as it is done for the Robot scripts. For that, I need to know how the <code>output.xml</code> is generated and how it works.</p>

<p>Can someone point me to the correct module/direction to move forward on this?</p>

<p><code>robot/running/model.py</code> defines a class named <code>TestSuite</code>. In that class definition is a method named <code>run</code> which is responsible for running the test. As part of its initialization it creates an instance of <code>Output</code>, which is the xml logger. This logger is defined in the file <code>robot/output/output.py</code>.</p>

python xml python-2.7 robotframework