Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-107722

Timestamps for each incident are missing in the QTest XML output

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • Testing: qtestlib
    • None

      Currently there no way to record the timestamp of the execution for each testcase. Here is a snippet of the XML test log:

      <?xml version="1.0" encoding="UTF-8"?>
      <TestCase name="tst_QGeoRouteRequest">
        <TestFunction name="numberAlternativeRoutes">
          <Incident type="pass" file="" line="0" />
          <Duration msecs="2.26295"/>
        </TestFunction>
        <TestFunction name="routeOptimization">
          <Incident type="pass" file="" line="0">
            <DataTag><![CDATA[optimization1]]></DataTag>
          </Incident>
          <Incident type="pass" file="" line="0">
            <DataTag><![CDATA[optimization2]]></DataTag>
          </Incident>
          <Incident type="pass" file="" line="0">
            <DataTag><![CDATA[optimization3]]></DataTag>
          </Incident>
          <Incident type="pass" file="" line="0">
            <DataTag><![CDATA[optimization4]]></DataTag>
          </Incident>
          <Duration msecs="2.35615"/>
        </TestFunction>
       [...]
        <Duration msecs="35.1167"/>
      </TestCase>
      

      One solution would be to add a timestamp property in each incident.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            macadder Jason McDonald
            jimis Dimitrios Apostolou
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes