Share via


DTM Logger XML Schema

When a test run is completed, DTM Logger generates two XML files: *.m.xml and *.t.xml. The m.xml file is the master file that you should use for displaying or parsing. It stores the entries (that is, XML entities) for the contexts and run time–information blocks. The actual traces in XML format are contained in the t.xml file.

The DTM Logger XML schema defines the format of these files. Each XML element (also called a tag) contains a number of attributes and encloses sub-elements.

Common Attributes and Sub-Elements

The following attributes are common to all DTM Logger elements:

  • CA is the called-at time-stamp, which is relative to the beginning of the test run.
  • LA is the logged-at time-stamp, which is relative to the beginning of the test run.

The following subelements are common to all DTM Logger elements:

  • RTI is the index to the run time–information table in the m.xml file, which describes the run-time information of each trace. This subelement contains the following attributes:

    • ID is the identifier of the run time–information table.
    • Machine is the name of the computer that is being used.
    • ProcessName is the name of the test that is being run.
    • ProcessID is the identifier of the test that is being run.
    • ThreadID is the identifier of the thread.

    The following code example demonstrates the RTI subelement and its attributes.

    <RTI ID="1207879918" Machine="WEIYOU-WIS5" ProcessName="CTLUnitTest.exe" 
         ProcessID="2824" ThreadID="2740" />

  • CTX is the index to the context table in the m.xml file, which describes the context of each trace. This subelement contains the following attributes:

    • ID is theidentifier of the context table.

    • Current is the name of the current context.

    • Parent is the name of the parent context.

    • The following code example demonstrates the CTX subelement and its attributes.

    • <CTX ID="1637872268" Current="DTM Logger COM Test" Parent="WTTLOG" />

Note  The RTI and CTX subelements contain all attributes only the first time that they are logged. Every other logging contains just the ID attribute, as the following code example shows.

<RTI ID="1207879918" />
<CTX ID="1637872268" />

Logger element formats

The following topics describe the available XML elements for DTM Logger.

Assert Element

Break Element

Bug Element

EndTest Element

Entry Element

Error Element

Exit Element

InvalidParam Element

Machine Element

Msg Element

PFRollup Element

StartTest Element

TCM Element

Warn Element

See Also

Logging in DTM, Getting Started with DTM Logger

Send feedback on this topic
Built on December 10, 2009