Share via


CWTTLogger::GetPFRollupStats method

The GetPFRollupStats method retrieves the current pass-fail statistics.

Syntax

HRESULT GetPFRollupStats(
  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

GetPFRollupStats returns one of the following values:

Return code Description
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.

 

Remarks

To retrieve the current pass-fail statistics, you must create an empty structure, as defined in the pWTTPFStats parameter, and call the GetPFRollupStats method. GetPFRollupStats passes DTM Logger a pointer the structure, and then DTM Logger populates the structure.

Requirements

Header

Wttlogger.h

Library

Library:WTTLog.dll

See also

CWTTLogger Class (C++)

 

 

Build date: 9/14/2012