Share via


WTTLogGetPFRollupStats

The WTTLogGetPFRollupStats function retrieves the current pass-fail statistics.

HRESULT WTTLogGetPFRollupStats (
  PWTTLOGROLLUPINFO  pWTTPFStats
);

Parameters

pWTTPFStats

[in] A pointer to a structure that contains the pass-fail statistics. The structure has the following definition.

typedef struct {
  ULONG  ulTotal;     // Total number of test cases
  ULONG  ulPassed;    // Number of test cases that passed
  ULONG  ulFailed;    // Number of test cases that failed
  ULONG  ulBlocked;   // Number of test cases that were blocked
  ULONG  ulWarned;    // Number of warnings
  ULONG  ulSkipped;   // Number of test cases that were skipped
} WTTLOGROLLUPINFO, * PWTTLOGROLLUPINFO;

Return Value

returns one of the following values:

  • S_OK
    The operation was successful.
  • S_FALSE
    The operation was successful but the last device has been detached, which has triggered a rollup.
  • HRESULT
    The operation failed. You should use the FAILED macro to check HRESULT values.

Comments

To retrieve the current pass-fail statistics, you must create an empty structure, as defined in the pWTTPFStats parameter, and call the WTTLogGetPFRollupStats function, which passes DTM Logger a pointer to the structure. DTM Logger will then populate the structure.

Requirements

Headers: Wttlogger.h

Library: WTTLog.dll

See Also

WTTLog Functions (C), WTTLogPFRollup

Send feedback on this topic
Built on December 10, 2009