ITestCaseResult.GetTestCase Method

Retrieves the test case data from the server as of the time that the test case result was created.

Namespace:  Microsoft.TeamFoundation.TestManagement.Client
Assembly:  Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)

Syntax

'Declaration
Function GetTestCase As ITestCase
ITestCase GetTestCase()
ITestCase^ GetTestCase()
abstract GetTestCase : unit -> ITestCase
function GetTestCase() : ITestCase

Return Value

Type: Microsoft.TeamFoundation.TestManagement.Client.ITestCase
The test case data. If the result is published from MSTEST/TCM.EXE, no test case exists, and this method returns nulla null reference (Nothing in Visual Basic).

Remarks

If the test case at the specific version is deleted, the method will return the latest version.

If the result is published from MSTEST/TCM.EXE, it does not have a test case so the method will return null.

.NET Framework Security

See Also

Reference

ITestCaseResult Interface

Microsoft.TeamFoundation.TestManagement.Client Namespace

ITestCase