weiwei / junitparser

Parses JUnit/xUnit Result XML files with ease
https://junitparser.readthedocs.io
Other
120 stars 52 forks source link

Parsing XML with <failure message="Test failure"> node #131

Open ChrisVanBael opened 4 months ago

ChrisVanBael commented 4 months ago

Hi,

Probably not really a defect in junitparser, maybe more of a question.

We are using Tricentis Tosca and this returns an xml similar to the one below: `<?xml version="1.0" encoding="utf-8"?>

-detailed info on the failure

`

junitparser doesn't seem to handle the element well. I can't find any testcase info when a failure has happened. Can I change how junitparser parses this xml? I am asking Tricentis what is the XSD and/or library they have used to generate this xml. Most XUnit libraries seem to have message has a sub element of failure, not as

Thanks for your help!

weiwei commented 2 months ago

Hi Chris, can you provide your code samples to me cuz I tried the example above and it seems to work.

image