In this tutorial, we will execute some tests using the Robot Framework.
This tutorial explores the integration using the JUnit XML report that the Robot Framework is capable of generate.
However, the Robot Framework native XML format is supported by Xray and thus it should be the preferable way of importing tests/results from Robot test cases. Whenever integrating through Robot's specfic XML format, you have access to more features than the ones that are available if you use JUnit's XML format, since the latter is a generic format.
- robot framework
- Java (if using the Java variant of the "robot framework")
This and more examples may be found in Robot framework's robotdemo repository.
Next, follows the robot test.
After running the tests (see bellow) and generating the JUnit XML report (e.g. robot.xml), it can be imported to Xray (either by the REST API or through "Import Execution Results" action within the Test Execution).
If you're using Python,
Or if you're using Java,
JUnit's Test Case is mapped to a Generic Test in JIRA, and the "Generic Test Definition" field contains the friendly name of the robot script concatenated with the aliias of the test case.
The Execution Details of the Generic Test contains information about the Test Suite, which in this case corresponds to the friendly name of the robot script (i.e. "Keyword Driven").