RIOT-OS / RobotFW-tests

Includes tests for RIOT based on the Robot Framework
GNU Lesser General Public License v2.1
4 stars 13 forks source link

Add "Record Property" keyword #75

Closed pokgak closed 4 years ago

pokgak commented 4 years ago

This PR adds the keyword "Record Property" and also a parser script output_to_xunit.py parser script to parse the of RobotFrameworks output.xml. The parsed xUnit is same as the xUnit output of RF (--xunit xunit.xm and --xunitskipnoncritical), with the addition of <properties> tag to record the properties.

NOTE: The parser script is limited to handle only the current structure of testsuites/testcases. It may produce incorrect xUnit output when used on other output.xml.

To use the keyword, include utils.keyword.txt as a Resource in the .robot file. See dist/tools/output_to_xunit/test/example_testsuite/example_test.robot for example.