发布时间: 2016年4月
测试运行对测试配置中创建新的测试结果。 不需要测试结果所需的现有测试用例。
必须后跟 save ()。
命名空间: Microsoft.TeamFoundation.TestManagement.Client
程序集: Microsoft.TeamFoundation.TestManagement.Client(Microsoft.TeamFoundation.TestManagement.Client.dll 中)
语法
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 As Integer,
testCaseTitle As String,
testCaseAreaUri As String,
implementation As ITmiTestImplementation
) As ITestCaseResult
参数
configurationId
Type: System.Int32要对其测试配置的 ID。
testCaseTitle
Type: System.String伪测试用例标题
testCaseAreaUri
Type: System.String测试用例的伪应位于的区域路径。 默认值为根区域路径。
implementation
Type: Microsoft.TeamFoundation.TestManagement.Client.ITmiTestImplementation测试结果的的测试实现中。
返回值
Type: Microsoft.TeamFoundation.TestManagement.Client.ITestCaseResult
请参阅
AddTest 重载
ITestRun 接口
Microsoft.TeamFoundation.TestManagement.Client 命名空间
返回页首