表示特许的执行。
命名空间: Microsoft.TeamFoundation.TestManagement.Client
程序集: Microsoft.TeamFoundation.TestManagement.Client(Microsoft.TeamFoundation.TestManagement.Client.dll 中)
语法
public interface ISession : ITestRunBase, IIdentifiable<int>,
IAttachmentOwner, INotifyPropertyChanged
public interface class ISession : ITestRunBase, IIdentifiable<int>,
IAttachmentOwner, INotifyPropertyChanged
type ISession =
interface
interface ITestRunBase
interface IIdentifiable<int>
interface IAttachmentOwner
interface INotifyPropertyChanged
end
Public Interface ISession
Inherits ITestRunBase, IIdentifiable(Of Integer), IAttachmentOwner,
INotifyPropertyChanged
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
Attachments | 获取附件的集合。(从 IAttachmentOwner 继承。) |
![]() |
Bookmarks | 执行该会话时创建书签。 |
![]() |
BuildConfigurationId | 如果 id 不存在,则返回生成配置的 ID 此运行的或 0 的(从 ITestRunBase 继承。) |
![]() |
BuildFlavor | 生成与例如“版本”或“调试”。(从 ITestRunBase 继承。) |
![]() |
BuildNumber | Name of the build.(从 ITestRunBase 继承。) |
![]() |
BuildPlatform | 生成的平台。(从 ITestRunBase 继承。) |
![]() |
BuildUri | Name (as a URI) of the build the run was executed against. As an example: new Uri("vstfs:///Build/Build/1")(从 ITestRunBase 继承。) |
![]() |
CharterId | 会话运行 ID 的授权。通过使用新的特殊方法建立的会话,为 0。 |
![]() |
Comment | Comments entered by those analyzing the run.(从 ITestRunBase 继承。) |
![]() |
ComputerName | 运行会话的计算机。 |
![]() |
Controller | The name of the controller of this run(从 ITestRunBase 继承。) |
![]() |
DateCompleted | Date the last test completed.(从 ITestRunBase 继承。) |
![]() |
DateCreated | Date the run was created.(从 ITestRunBase 继承。) |
![]() |
DateStarted | Date the run was started.(从 ITestRunBase 继承。) |
![]() |
Duration | 测试会话的持续时间。 |
![]() |
FeedbackId | 会话运行 ID 的反馈。如果该会话没有问反馈生成,则为 0。 |
![]() |
Id | 获取标识符。(从 IIdentifiable<TKey> 继承。) |
![]() |
IsDirty | Returns true if the test run has been changed since the last Save().(从 ITestRunBase 继承。) |
![]() |
LastUpdated | Date the run was last modified (title or owner set).(从 ITestRunBase 继承。) |
![]() |
LastUpdatedBy | Last person to update run(从 ITestRunBase 继承。) |
![]() |
LastUpdatedByName | Last person to update run(从 ITestRunBase 继承。) |
![]() |
LinkedWorkItemCount | The total number of bugs associated with the test results.(从 ITestRunBase 继承。) |
![]() |
Notes | 注意当执行此会话时创建。 |
![]() |
Owner | User who started the run.(从 ITestRunBase 继承。) |
![]() |
OwnerName | User who started the run.(从 ITestRunBase 继承。) |
![]() |
OwnerTeamFoundationId | User who started the run.(从 ITestRunBase 继承。) |
![]() |
Revision | Revision number of TestRun for concurrency control(从 ITestRunBase 继承。) |
![]() |
Sprint | 从中创建会话的 Sprint。 |
![]() |
State | 会话状态。 |
![]() |
TestConfigurationId | 此会话反对执行的配置的 ID。 |
![]() |
TestConfigurationName | 此会话反对执行的配置名称。 |
![]() |
TestEnvironmentId | The test environment for this run(从 ITestRunBase 继承。) |
![]() |
TestPlanId | Returns the ID of the test plan that contains this run or 0 if this is an ad-hoc run.(从 ITestRunBase 继承。) |
![]() |
TestSettings | The test settings being used for this test run execution. Null if the run has no test settings.(从 ITestRunBase 继承。) |
![]() |
TestSettingsId | ID of the public test settings being used for this test run.(从 ITestRunBase 继承。) |
![]() |
Title | Title of the associated run template.(从 ITestRunBase 继承。) |
![]() |
UserStoryId | 会话运行 ID 的用户情景。通过使用新的特殊方法建立的会话,为 0。 |
![]() |
UserStoryTitle | 该会话从服务器检索的用户会话情景的标题。 如果此服务器是旧版本或不能获取标题,则可能为 null。 |
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
AssociateWorkItem(WorkItem) | 给定工作项与此会话关联。 |
![]() |
CopyTestSettings(ITestSettings) | Copy the test settings and associate it to the test run.(从 ITestRunBase 继承。) |
![]() |
CreateAttachment(Byte[], Int32, Int32) | Creates an attachment for a Test Result from a byte array.(从 ITestRunBase 继承。) |
![]() |
CreateAttachment(String) | 依据文件创建附件。(从 IAttachmentOwner 继承。) |
![]() |
CreateAttachment(String, SourceFileAction) | 依据文件创建附件,可以选择在上载之后删除源文件。(从 IAttachmentOwner 继承。) |
![]() |
CreateBookmark() | 创建会话书签。 |
![]() |
CreateNote() | 创建会话说明。 |
![]() |
Delete() | Removes the given test run and its results from the server.(从 ITestRunBase 继承。) |
![]() |
DisassociateWorkItem(WorkItem) | 移除给定工作项与此测试结果之间的链接。 |
![]() |
QueryAssociatedWorkItems() | 从服务器检索工作项与此会话。 |
![]() |
Refresh() | Updates the run with new data from the server.(从 ITestRunBase 继承。) |
![]() |
Save() | Writes the new or updated test run to the server.(从 ITestRunBase 继承。) |
![]() |
Save(Boolean) | 发送更新会话信息到服务器。 |
事件
| 名称 | 说明 | |
|---|---|---|
![]() |
AttachmentUploadCompleted | 此事件在附件上载完成时引发。(从 IAttachmentOwner 继承。) |
![]() |
PropertyChanged | (从 INotifyPropertyChanged 继承。) |
请参阅
Microsoft.TeamFoundation.TestManagement.Client 命名空间
返回页首
.jpeg)
.gif)
.gif)