junitxml: move custom properties to properties element

<testsuite>
  <testcase>
    <properties>
      <property name="ABC" value="XYZ" />
      <property name="DEF" value="ZYX" />
    </properties>
  </testcase>
</testsuite>
This commit is contained in:
Lukas Bednar
2015-09-16 13:02:54 +02:00
parent b2b003dcac
commit 02a2272cfe
3 changed files with 17 additions and 3 deletions

View File

@@ -561,5 +561,7 @@ def test_record_property(testdir):
result, dom = runandparse(testdir, '-rw')
node = dom.getElementsByTagName("testsuite")[0]
tnode = node.getElementsByTagName("testcase")[0]
assert_attr(tnode, foo="<1")
psnode = tnode.getElementsByTagName('properties')[0]
pnode = psnode.getElementsByTagName('property')[0]
assert_attr(pnode, name="foo", value="<1")
result.stdout.fnmatch_lines('*C3*test_record_property.py*experimental*')