TestCase::AddMetricValue method

Creates and adds a MetricValue whose value is a DOUBLE.

Syntax

virtual HRESULT AddMetricValue(
  [in]  LPCWSTR     programmaticName,
  [in]  DOUBLE      value,
  [out] MetricValue **metricValue
) = 0;

Parameters

programmaticName [in]

The programmatic name.

value [in]

The value.

metricValue [out]

The MetricValue that this method creates.

Return value

If the function succeeds, it returns S_OK. If it fails, it returns an error value.

Remarks

The TestCase objects hold information from the Iteration/TestCases/TestCase elements.

The MetricValue objects hold information from the TestCase/MetricValues/MetricValue elements. The value that this method sets is the value of the TestCase/MetricValues/MetricValue/Value element.

The programmatic name is the value of element MetricValue/ProgrammaticName.

The value is the value of element MetricValue/Value.

Requirements

Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]
Header
AxeRuntime.h
DLL
AxeCore.dll

See also

TestCase