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

Timestamps for each incident are missing in the QTest XML output

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: