ITestCase 接口

 

表示测试用例的设置数据存储在测试管理服务器。

命名空间:   Microsoft.TeamFoundation.TestManagement.Client
程序集:  Microsoft.TeamFoundation.TestManagement.Client(Microsoft.TeamFoundation.TestManagement.Client.dll 中)

语法

public interface ITestCase : ITestBase, ITestObject<int>, IIdentifiable<int>, 
    IPropertyOwner, IDataErrorInfo, INotifyPropertyChanged, IAttachmentOwner
public interface class ITestCase : ITestBase, ITestObject<int>, 
    IIdentifiable<int>, IPropertyOwner, IDataErrorInfo, INotifyPropertyChanged, 
    IAttachmentOwner
type ITestCase = 
    interface
        interface ITestBase
        interface ITestObject<int>
        interface IIdentifiable<int>
        interface IPropertyOwner
        interface IDataErrorInfo
        interface INotifyPropertyChanged
        interface IAttachmentOwner
    end
Public Interface ITestCase
    Inherits ITestBase, ITestObject(Of Integer), IIdentifiable(Of Integer),
    IPropertyOwner, IDataErrorInfo, INotifyPropertyChanged, IAttachmentOwner

属性

名称 说明
System_CAPS_pubproperty Actions

获取测试操作对象的集合,这些对象按执行顺序存储。(从 ITestBase 继承。)

System_CAPS_pubproperty Area

获取或设置此测试所属的分类或功能区域。(从 ITestBase 继承。)

System_CAPS_pubproperty Attachments

获取附件的集合。(从 IAttachmentOwner 继承。)

System_CAPS_pubproperty CustomFields

获取对向服务器注册的用户定义字段集合进行跟踪的工作项。(从 ITestBase 继承。)

System_CAPS_pubproperty Data

Gets a DataSet that contains the parameter values that will be used when this test case is executed.

System_CAPS_pubproperty DataReadOnly

Test data tables that are stored in the test case.

System_CAPS_pubproperty DateCreated

获取创建此对象的日期。(从 ITestBase 继承。)

System_CAPS_pubproperty DateModified

获取最后修改此对象的日期。(从 ITestBase 继承。)

System_CAPS_pubproperty DefaultTable

Gets the default table in the DataSet that is returned from the Data property.

System_CAPS_pubproperty DefaultTableReadOnly

Default table that is used for internal binding

System_CAPS_pubproperty Description

获取或设置此对象的说明。(从 ITestBase 继承。)

System_CAPS_pubproperty Error

(从 IDataErrorInfo 继承。)

System_CAPS_pubproperty Exists

获取一个值,该值指示此对象是否已销毁,以及调用方是否有权访问对象。(从 ITestBase 继承。)

System_CAPS_pubproperty Id

获取标识符。(从 IIdentifiable<TKey> 继承。)

System_CAPS_pubproperty Implementation

Gets a reference to the automated test that implements this test case.

System_CAPS_pubproperty InvalidProperties

获取无效的属性名称的列表。(从 IPropertyOwner 继承。)

System_CAPS_pubproperty IsAutomated

Gets a value that indicates whether the test is automated.

System_CAPS_pubproperty IsDirty

获取一个值,该值指示自上次刷新、获取或保存以来任何属性是否发生了更改。(从 IPropertyOwner 继承。)

System_CAPS_pubproperty Item[String]

(从 IDataErrorInfo 继承。)

System_CAPS_pubproperty Links

获取对指向其他项目的链接的集合进行跟踪的工作项。(从 ITestBase 继承。)

System_CAPS_pubproperty Owner

获取或设置负责此测试(如果此测试为自动测试)的人员或负责维护测试步骤(如果此测试为手动测试)的人员的标识。(从 ITestBase 继承。)

System_CAPS_pubproperty OwnerName

人员负责此测试的自动化。如果手动测试人员,负责维护测试步骤。(从 ITestBase 继承。)

System_CAPS_pubproperty OwnerTeamFoundationId

人员负责此测试的自动化。如果手动测试人员,负责维护测试步骤。(从 ITestBase 继承。)

System_CAPS_pubproperty Priority

获取或设置用于执行此测试的优先级别。(从 ITestBase 继承。)

System_CAPS_pubproperty Project

此 API 支持 产品 基础结构,不能在代码中直接使用。 获取测试项目。(从 ITestObject<T> 继承。)

System_CAPS_pubproperty Reason

获取或设置此对象处于其当前状态的原因。(从 ITestBase 继承。)

System_CAPS_pubproperty Revision

此 API 支持 产品 基础结构,不能在代码中直接使用。 获取此对象的当前修订号。(从 ITestObject<T> 继承。)

System_CAPS_pubproperty State

获取或设置该会话的当前对象。(从 ITestBase 继承。)

System_CAPS_pubproperty TestParameters

获取该测试中的测试步骤中使用的所有参数和任何共享的步骤中所包含的所有参数的集合。(从 ITestBase 继承。)

System_CAPS_pubproperty TestSuiteEntry

Creates a new ITestSuiteEntry that contains this test case, which subsequently must be attached to an existing test suite that is in the root suite of a test plan.

System_CAPS_pubproperty Title

获取或设置此测试或步骤的标题。(从 ITestBase 继承。)

System_CAPS_pubproperty UserData

此 API 支持 产品 基础结构,不能在代码中直接使用。 获取或设置未保留的任意对象或值,但允许动态扩展测试管理对象。(从 ITestObject<T> 继承。)

System_CAPS_pubproperty WorkItem

获取基础工作项。(从 ITestBase 继承。)

方法

名称 说明
System_CAPS_pubmethod CreateAttachment(Byte[], Int32, Int32)

Creates an attachment for a test case by using the provided byte array.

System_CAPS_pubmethod CreateAttachment(String)

依据文件创建附件。(从 IAttachmentOwner 继承。)

System_CAPS_pubmethod CreateAttachment(String, SourceFileAction)

依据文件创建附件,可以选择在上载之后删除源文件。(从 IAttachmentOwner 继承。)

System_CAPS_pubmethod CreateSharedStepReference()

如果此对象为测试用例,请创建一个新的共享步骤引用,该引用提供对其他操作集的访问。(从 ITestBase 继承。)

System_CAPS_pubmethod CreateTestActionGroup()

创建一个新的测试操作组,可向该组中添加步骤或其他组。(从 ITestBase 继承。)

System_CAPS_pubmethod CreateTestStep()

创建一个新的测试步骤。(从 ITestBase 继承。)

System_CAPS_pubmethod FindAction(Int32)

使用给定 ID 号从 Actions 属性中返回指定操作。(从 ITestBase 继承。)

System_CAPS_pubmethod Flush()

通过使用在此对象中所做的更改,引入最新的工作项字段。(从 ITestBase 继承。)

System_CAPS_pubmethod GetReferencedSharedStep(Int32)

Return the shared step referenced by the test case. Returns null if the shared step corresponding to sharedStepId is not referenced by the test case.

System_CAPS_pubmethod GetReferencedSharedStep(Int32, Int32)

返回测试用例引用的该共享步骤的特定版本。当与 sharedStepId 对应的共享步骤未通过测试用例,则引用从返回 null。

System_CAPS_pubmethod OverrideParameter(String)

重写指定的参数,这允许它从此特定测试用例的步骤中移除,而保留它的参数数据从其他迭代。(从 ITestBase 继承。)

System_CAPS_pubmethod Refresh()

依据服务器刷新当前项,并将值重置为项中存储的值。将丢弃任何缓存数据。(从 ITestBase 继承。)

System_CAPS_pubmethod RenameParameter(String, String)

使用提供的参数名重命名参数,并更新引用参数的所有操作。(从 ITestBase 继承。)

System_CAPS_pubmethod ReplaceParameter(String, String)

查找在操作中使用所提供的参数的所有实例、为每个实例删除任何迭代数据以及使用提供的文本来替换它。(从 ITestBase 继承。)

System_CAPS_pubmethod Save()

通过调用 Flush 方法引入最新的工作项字段,然后将每个工作项存储到服务器。(从 ITestBase 继承。)

事件

名称 说明
System_CAPS_pubevent AttachmentUploadCompleted

此事件在附件上载完成时引发。(从 IAttachmentOwner 继承。)

System_CAPS_pubevent PropertyChanged

(从 INotifyPropertyChanged 继承。)

System_CAPS_pubevent TestParameterDeletingEvent

在将要删除测试参数时引发的事件。(从 ITestBase 继承。)

备注

这里不会更新任何内容;请不要在这里添加材料。

请参阅

Microsoft.TeamFoundation.TestManagement.Client 命名空间

返回页首