Share via


TestCase::SetSubject method

Sets the Subject of the TestCase.

Syntax

virtual HRESULT SetSubject(
  [in]            LPCWSTR className,
  [in, optional]  LPCWSTR instanceName,
  [out, optional] Subject **subject
) = 0;

Parameters

className [in]

The class name of the Subject.

instanceName [in, optional]

The instance name of the Subject.

subject [out, optional]

The Subject.

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 Subject holds information from element TestCase/Subject.

The class name is the value of element TestCase/Subject/Class/ProgrammaticName.

The instance name is the value of element TestCase/Subject/Instance/ProgrammaticName.

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