Hello All!
I have been using Robot Framework for a number of years now… I recently changed my running CMD-Line params to use the --xunit so that the XML output would be in the correct format to exchange data with the Zephyr program from SmartBear Software.
The Generated XML file has “a wrong format” for a Failure Node when it is imported into Zephyr. The Failure Node is NOT seen as a Failure - proceeds to Success in Zephyr.
See the code examples below :
Issue when using --xunit cmd-line (to generate a JUnit XML file - used to pass data to Zephyr - the Pass/Fail test results)
Original Test Case Failure :
** ^^ Above ^^ - Does NOT show up as a Failure when imported into Zephyr **
This patched XML will show the failure correctly in Zephyr :
Incorrect NEW Browser TAB Title
JUnit Format From : Linux Lighting Group - JUnit XML reporting file format for Jenkins
<failure message=“”
type=“”
>
failure description
Version Info :
Python 3.9.10
robotframework 6.0.2
robotframework-pythonlibcore 4.0.0
robotframework-requests 0.9.4
robotframework-selenium2library 3.0.0
robotframework-seleniumlibrary 6.0.0
manju
(manjula)
8 June 2023 03:16
2
Hi Steve,
Can you please share if there is any update/workaround to handle this. I am also facing the same issue.
Hi!
We have no real work around at this point…
I Filed Bug report with the above info.
opened 03:28PM - 08 Jun 23 UTC
I have been using Robot Framework for a number of years now... I recently change… d my running CMD-Line params to use the --xunit so that the XML output would be in the correct format to exchange data with the Zephyr program from SmartBear Software.
The Generated XML file has "a wrong format" for a Failure Node when it is imported into Zephyr. The Failure Node is NOT seen as a Failure - proceeds to Success in Zephyr.
See the code examples below :
**Issue when using --xunit cmd-line (to generate a JUnit XML file - used to pass data to Zephyr - the Pass/Fail test results)**
Original Test Case Failure :
<testcase classname="Apps Testing" name="Test Apps In New Tab" time="148.878">
<failure message="Incorrect NEW Browser TAB APP Title" type="AssertionError"/>
</testcase>
** ^^ Above ^^ - Does NOT show up as a Failure when imported into Zephyr **
This patched XML will show the failure correctly in Zephyr :
<testcase classname="Apps Testing" name="Test Apps In New Tab" time="148.878">
<failure message="Incorrect NEW Browser TAB Title" type="failure">
Incorrect NEW Browser TAB Title
</failure>
</testcase>
For Reference : JUnit Format From : https://llg.cubic.org/docs/junit/
<failure message=""
type=""
>
failure description
</failure>
Version Info :
Python 3.9.10
robotframework 6.0.2
robotframework-pythonlibcore 4.1.2
robotframework-requests 0.9.4
robotframework-selenium2library 3.0.0
robotframework-seleniumlibrary 6.0.0
You will need GitHub userid/password to see this info.
Steve
manju
(manjula)
9 June 2023 05:00
4
Thank you Steve. I will follow this bug for further updates…