ITestRun.AddTest Method (Int32, String, String, ITmiTestImplementation)
Creates a new test result in the test run against a test configuration. Does not require an existing test case for the test result.
Must be followed by a Save().
Namespace: Microsoft.TeamFoundation.TestManagement.Client
Assembly: Microsoft.TeamFoundation.TestManagement.Client (in Microsoft.TeamFoundation.TestManagement.Client.dll)
Syntax
'Declaration
Function AddTest ( _
configurationId As Integer, _
testCaseTitle As String, _
testCaseAreaUri As String, _
implementation As ITmiTestImplementation _
) As ITestCaseResult
ITestCaseResult AddTest(
int configurationId,
string testCaseTitle,
string testCaseAreaUri,
ITmiTestImplementation implementation
)
ITestCaseResult^ AddTest(
int configurationId,
String^ testCaseTitle,
String^ testCaseAreaUri,
ITmiTestImplementation^ implementation
)
abstract AddTest :
configurationId:int *
testCaseTitle:string *
testCaseAreaUri:string *
implementation:ITmiTestImplementation -> ITestCaseResult
function AddTest(
configurationId : int,
testCaseTitle : String,
testCaseAreaUri : String,
implementation : ITmiTestImplementation
) : ITestCaseResult
Parameters
configurationId
Type: Int32ID of configuration to test against.
testCaseTitle
Type: StringTitle of the pseudo test case
testCaseAreaUri
Type: StringArea path where the pseudo test case should be. Default is the root area path.
implementation
Type: Microsoft.TeamFoundation.TestManagement.Client.ITmiTestImplementationThe test implementation for the test result.
Return Value
Type: Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.