# Format of Failure Node in XML File when Using --xunit

**URL:** <https://forum.robotframework.org/t/format-of-failure-node-in-xml-file-when-using-xunit/5215>\
**Category:** Development\
**Created:** [27 January 2023 19:48 UTC](https://forum.robotframework.org/t/format-of-failure-node-in-xml-file-when-using-xunit/5215 "2023-01-27T19:48:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevereiss](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@stevereiss](https://forum.robotframework.org/u/stevereiss)\
**Post date:** [27 January 2023 19:48 UTC](https://forum.robotframework.org/t/format-of-failure-node-in-xml-file-when-using-xunit/5215/1 "2023-01-27T19:48:37Z")

</div>

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](https://llg.cubic.org/docs/junit/)

\<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

---

<div class="post-metadata">

**Author:** ![manju](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@manju](https://forum.robotframework.org/u/manju)\
**Post date:** [8 June 2023 03:16 UTC](https://forum.robotframework.org/t/format-of-failure-node-in-xml-file-when-using-xunit/5215/2 "2023-06-08T03:16:58Z")

</div>

Hi Steve,

Can you please share if there is any update/workaround to handle this. I am also facing the same issue.

---

<div class="post-metadata">

**Author:** ![stevereiss](https://avatars.discourse-cdn.com/v4/letter/s/58956e/32.png) [@stevereiss](https://forum.robotframework.org/u/stevereiss)\
**Post date:** [8 June 2023 15:41 UTC](https://forum.robotframework.org/t/format-of-failure-node-in-xml-file-when-using-xunit/5215/3 "2023-06-08T15:41:46Z")

</div>

Hi!

We have no real work around at this point… ☹

I Filed Bug report with the above info.

> <https://github.com/robotframework/robotframework/issues/4788>
>
> 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

---

<div class="post-metadata">

**Author:** ![manju](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@manju](https://forum.robotframework.org/u/manju)\
**Post date:** [9 June 2023 05:00 UTC](https://forum.robotframework.org/t/format-of-failure-node-in-xml-file-when-using-xunit/5215/4 "2023-06-09T05:00:46Z")

</div>

Thank you Steve. I will follow this bug for further updates…
