Share via


Selective Roll Up of Test Case Results

DTM Logger enables you to selectively include test case results in the rolled-up results for the collection. This option effectively excludes any other test cases from the result totals. A failure in a test case that is not explicitly included will not affect the overall results for the collection.

To selectively roll up test case results

  1. Create a resource DLL and add it to the project for your test executable file.

  2. To this DLL, add a string table with an entry for each test case that you want to include in the rolled-up results. Each entry must consist of two parts, separated by a semicolon (;). The first part must be the test case GUID, and the second part must be the test case name. The following code example shows a typical string table entry.

  3. For the $LocalPub log device type, set the WTTLogAssertMode option to true. For more information about the $LocalPub options, see Log Device Types.

  4. Set the WTTLogAssertDLL option to the path of the resource DLL that contains your string table.

  5. In your test code, start the test by using the WTTLogger.StartTest(String, Guid) (.NET) or CWTTLogger::StartTestWithResID (C++) function.

  6. End the test by using the WTTLogger.EndTest(String, String, Guid) (.NET) or CWTTLogger::EndTestWithResID (C++) function.

When DTM Logger makes the pass/fail decision for a particular test case, it first looks for the test case in the resource string table. If an entry for the test case is found in the table, DTM Logger counts the test case towards the final result. If the test case is not found in the table, DTM Logger omits it from the roll up.

See Also

Getting Started with DTM Logger, Managing a Test Case

Send feedback on this topic
Built on December 10, 2009