简体   繁体   中英

Converting Robot Framework XML to JUnit XML

I want a Robot Framework report XML in JUnit format.

Is there a way to produce a JUnit XML from the Robot run itself, or do I need to convert the Robot XML to follow the format of JUnit?

I'm running the Robot script on Python. Apparently the JUnit XML report is only possible if I use Java.

Thanks.

Is there a way to produce a JUnit XML from the Robot run itself

Yes, during the execution or even afterwards, by converting RF's native output.xml to xunit format - the latter is through the built-in tool rebot :

reboot -x xunitOut.xml output.xml

The switch -x / --xunit (link to the guide) can be used both during run, or in post processing.


I'm running the Robot script on Python. Apparently the JUnit XML report is only possible if I use Java.

I don't think that's the case, it's just a format of the execution report xml:)
Keep in mind the xUnit looses some of the meta info that's available in the native format - due to their different nature.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM