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.
Since the Robot Framework native XML format is supported by Xray, it is 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.
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 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").