Skip to content

How to get testcases properties? #116

@nicola-lunghi

Description

@nicola-lunghi

I have the following xml

<testsuite name="LatencyTestSuite/LatencyTest" tests="8" failures="8" disabled="0" skipped="0"
  errors="0" time="20.006" timestamp="2023-10-19T09:02:39.209">
  <testcase name="LatencyTest/LAT_64" value_param="64" file="test_latency.cpp" line="125"
    status="run" result="completed" time="2.5" timestamp="2023-10-19T09:02:39.209"
    classname="LatencyTestSuite/LatencyTest">
    <failure
      message="test_latency.cpp:146&#x0A;Expected equality of these values:&#x0A;  test_result.EdmaRttValid&#x0A;    Which is: 0&#x0A;  1"
      type=""><![CDATA[test_latency.cpp:146
Expected equality of these values:
  test_result.EdmaRttValid
    Which is: 0
  1]]></failure>
    <failure
      message="test_latency.cpp:147&#x0A;Expected: (test_result.EdmaRtt01) &gt; (0), actual: 0 vs 0"
      type=""><![CDATA[test_latency.cpp:147
Expected: (test_result.EdmaRtt01) > (0), actual: 0 vs 0]]></failure>
    <failure
      message="test_latency.cpp:148&#x0A;Expected: (test_result.EdmaRtt02) &gt; (0), actual: 0 vs 0"
      type=""><![CDATA[test_latency.cpp:148
Expected: (test_result.EdmaRtt02) > (0), actual: 0 vs 0]]></failure>
    <properties>
      <property name="TestType" value="LATENCY_EDMA" />
      <property name="PktSize" value="64" />
      <property name="EdmaRttTimeout" value="0" />
      <property name="EdmaRttValid" value="0" />
      <property name="EdmaRtt01" value="0" />
      <property name="EdmaRtt02" value="0" />
      <property name="dma_error_reg" value="0" />
    </properties>
  </testcase>
</testsuite>

I need to extract the test properties there's a way to do it?
thanks,
Nicola

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions