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 generating.
Since the Robot Framework native XML format is supported by Xray, it is the preferable way of importing tests/results from Robot test cases. When 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 more generic.
- Robot Framework
- Java (if using the Java variant of the "robot framework")
This and more examples are found in Robot Framework's robotdemo repository.
This is the Robot test.
After running the tests and generating the JUnit XML report (e.g., robot.xml), it can be imported to Xray (by using either the REST API or the Import Execution Results action within the Test Execution).
If you're using Python,
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 alias 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").