共用方式為


ISession Interface

Represent the execution of a charter.

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

Syntax

'Declaration
Public Interface ISession _
    Inherits ITestRunBase, IIdentifiable(Of Integer), IAttachmentOwner,  _
    INotifyPropertyChanged
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 extends ITestRunBase, IIdentifiable<int>, IAttachmentOwner, INotifyPropertyChanged

The ISession type exposes the following members.

Properties

  Name Description
Public property Attachments Gets the collection of attachments. (Inherited from IAttachmentOwner.)
Public property Bookmarks Bookmarks created when executing this session.
Public property BuildConfigurationId Returns the ID of the build configuration for this run or 0 if no id exists (Inherited from ITestRunBase.)
Public property BuildFlavor Build flavor such as 'Release' or 'Debug'. (Inherited from ITestRunBase.)
Public property BuildNumber (Inherited from ITestRunBase.)
Public property BuildPlatform Platform of the build. (Inherited from ITestRunBase.)
Public property BuildUri (Inherited from ITestRunBase.)
Public property CharterId The charter ID for which the session was run. 0 for ad hoc session.
Public property Comment (Inherited from ITestRunBase.)
Public property ComputerName The computer on which the session was run.
Public property Controller (Inherited from ITestRunBase.)
Public property DateCompleted (Inherited from ITestRunBase.)
Public property DateCreated (Inherited from ITestRunBase.)
Public property DateStarted (Inherited from ITestRunBase.)
Public property Duration Duration of the test session.
Public property FeedbackId The feedback ID for which the session was run. 0 if the session is not created for feedback.
Public property Id Gets the identifier. (Inherited from IIdentifiable<TKey>.)
Public property IsDirty (Inherited from ITestRunBase.)
Public property LastUpdated (Inherited from ITestRunBase.)
Public property LastUpdatedBy (Inherited from ITestRunBase.)
Public property LastUpdatedByName (Inherited from ITestRunBase.)
Public property LinkedWorkItemCount (Inherited from ITestRunBase.)
Public property Notes Notes created when executing the session.
Public property Owner (Inherited from ITestRunBase.)
Public property OwnerName (Inherited from ITestRunBase.)
Public property OwnerTeamFoundationId (Inherited from ITestRunBase.)
Public property Revision (Inherited from ITestRunBase.)
Public property Sprint Sprint in which the session was created.
Public property State State of the session.
Public property TestConfigurationId ID of the configuration this session was executed against.
Public property TestConfigurationName Name of the configuration this session was executed against.
Public property TestEnvironmentId (Inherited from ITestRunBase.)
Public property TestPlanId (Inherited from ITestRunBase.)
Public property TestSettings (Inherited from ITestRunBase.)
Public property TestSettingsId (Inherited from ITestRunBase.)
Public property Title (Inherited from ITestRunBase.)
Public property UserStoryId The user story ID for which the session was run. 0 for ad hoc session.
Public property UserStoryTitle The title of the user story of the session, as of when the session is retrieved from the server. May be null if the server is of an older version, or if the server is unable to fetch the title.

Top

Methods

  Name Description
Public method AssociateWorkItem Associates the given work item with this session.
Public method CopyTestSettings (Inherited from ITestRunBase.)
Public method CreateAttachment(String) Creates an attachment from a file. (Inherited from IAttachmentOwner.)
Public method CreateAttachment(String, SourceFileAction) Creates an attachment from a file, optionally deleting the source file after uploading. (Inherited from IAttachmentOwner.)
Public method CreateAttachment(array<Byte[], Int32, Int32) (Inherited from ITestRunBase.)
Public method CreateBookmark Creates a session bookmark.
Public method CreateNote Creates a session note.
Public method Delete (Inherited from ITestRunBase.)
Public method DisassociateWorkItem Removes the association of the given work item from this test result.
Public method QueryAssociatedWorkItems Retrieves work items associated with this session from the server.
Public method Refresh (Inherited from ITestRunBase.)
Public method Save() (Inherited from ITestRunBase.)
Public method Save(Boolean) Sends updated session information to the server.

Top

Events

  Name Description
Public event AttachmentUploadCompleted This event is raised when the attachment upload is completed. (Inherited from IAttachmentOwner.)
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

See Also

Reference

Microsoft.TeamFoundation.TestManagement.Client Namespace