Closed bitcoder closed 2 years ago
The element is added always to the elements, even if there are no custom properties for the testcase.
currently it can generate an XML like this:
<testcase name="CanMultiply" classname="app.getxray.java.CalcTest" time="0" started-at="2022-07-06T10:59:22.233" finished-at="2022-07-06T10:59:22.234"> <properties> </properties> </testcase>
If no custom properties exist for the testcase, that element "" should not be added to the XML. The previous test would be reported as:
<testcase name="CanMultiply" classname="app.getxray.java.CalcTest" time="0" started-at="2022-07-06T10:59:22.233" finished-at="2022-07-06T10:59:22.234"> </testcase>
A workaround was provided instead to add a dummy property instead to not make the code too much complex.
<properties> <property name="_dummy_" value=""/> </properties>
The element is added always to the elements, even if there are no custom properties for the testcase.
currently it can generate an XML like this:
If no custom properties exist for the testcase, that element "" should not be added to the XML.
The previous test would be reported as: