表示针对特定生成执行一组测试。
命名空间: Microsoft.TeamFoundation.TestManagement.Client
程序集: Microsoft.TeamFoundation.TestManagement.Client(Microsoft.TeamFoundation.TestManagement.Client.dll 中)
语法
public interface ITestRun : ITestMessageLogOwner, ITestRunBase,
IIdentifiable<int>, IAttachmentOwner, INotifyPropertyChanged
public interface class ITestRun : ITestMessageLogOwner, ITestRunBase,
IIdentifiable<int>, IAttachmentOwner, INotifyPropertyChanged
type ITestRun =
interface
interface ITestMessageLogOwner
interface ITestRunBase
interface IIdentifiable<int>
interface IAttachmentOwner
interface INotifyPropertyChanged
end
Public Interface ITestRun
Inherits ITestMessageLogOwner, ITestRunBase, IIdentifiable(Of Integer),
IAttachmentOwner, INotifyPropertyChanged
属性
| 名称 | 说明 | |
|---|---|---|
![]() |
Attachments | 获取附件的集合。(从 IAttachmentOwner 继承。) |
![]() |
BuildConfigurationId | Gets the build configuration ID for this test run. |
![]() |
BuildDirectory | Gets or sets the path of the output of the build. |
![]() |
BuildFlavor | Gets or sets the flavor of the build (that is, "Release" or "Debug"). |
![]() |
BuildNumber | Name of the build.(从 ITestRunBase 继承。) |
![]() |
BuildPlatform | Gets or sets the platform of the build. |
![]() |
BuildUri | Name (as a URI) of the build the run was executed against. As an example: new Uri("vstfs:///Build/Build/1")(从 ITestRunBase 继承。) |
![]() |
Comment | Comments entered by those analyzing the run.(从 ITestRunBase 继承。) |
![]() |
Controller | The name of the controller of this run(从 ITestRunBase 继承。) |
![]() |
DateCompleted | Date the last test completed.(从 ITestRunBase 继承。) |
![]() |
DateCreated | Date the run was created.(从 ITestRunBase 继承。) |
![]() |
DateDue | Gets the date that this test run is due. |
![]() |
DateStarted | Date the run was started.(从 ITestRunBase 继承。) |
![]() |
ErrorMessage | Gets or sets a short description of a failure, if any. |
![]() |
Id | 获取标识符。(从 IIdentifiable<TKey> 继承。) |
![]() |
IncompleteTests | The number of tests that are not completed. |
![]() |
IsAutomated | Gets or sets a value that indicates whether the test run contains tests that should be automatically executed. |
![]() |
IsBvt | Gets or sets a value that indicates whether this test run is a build verification test. |
![]() |
IsDirty | Returns true if the test run has been changed since the last Save().(从 ITestRunBase 继承。) |
![]() |
Iteration | Gets or sets the number of times that this test run has been executed. |
![]() |
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 继承。) |
![]() |
NotApplicableTests | |
![]() |
Owner | User who started the run.(从 ITestRunBase 继承。) |
![]() |
OwnerName | User who started the run.(从 ITestRunBase 继承。) |
![]() |
OwnerTeamFoundationId | User who started the run.(从 ITestRunBase 继承。) |
![]() |
PassedTests | The number of tests that passed. |
![]() |
PostProcessState | Gets the state of any post-process activities that occur on the server. |
![]() |
Project | Gets the team project for this run. |
![]() |
Revision | Revision number of TestRun for concurrency control(从 ITestRunBase 继承。) |
![]() |
State | Gets the current state of this test run. |
![]() |
Statistics | Gets the statistics that detail the number of test cases in various states in this test run. |
![]() |
TestEnvironmentId | The test environment for this run(从 ITestRunBase 继承。) |
![]() |
TestMessageLogEntries | 获取测试消息日志项的集合。(从 ITestMessageLogOwner 继承。) |
![]() |
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 继承。) |
![]() |
TotalTests | The total number of tests in this run. |
![]() |
Type | Gets the type of this test run. |
![]() |
UnanalyzedTests | The number of tests that are not analyzed. |
![]() |
Version | Gets the client version that ran the test. |
方法
| 名称 | 说明 | |
|---|---|---|
![]() |
Abort() | Aborts this test run. |
![]() |
Abort(TestRunAbortOptions) | Aborts this test run by using the given options. |
![]() |
AddTest(Int32, Int32, TeamFoundationIdentity) | Adds a test case and configuration to the test run. |
![]() |
AddTest(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(). |
![]() |
AddTest(String) | Adds a new test with given name. Must be followed by a Save() |
![]() |
AddTestPoint(ITestPoint, TeamFoundationIdentity) | Adds a new test point to this test run. |
![]() |
AddTestPoints(IEnumerable<ITestPoint>, TeamFoundationIdentity) | Adds new test points to the test run. Must be followed by a Save(). The test result objects returned by this call are not usable until after the save. |
![]() |
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 继承。) |
![]() |
CreateLogEntry(String, TestMessageLogEntryLevel) | 创建日志项目的测试消息并且将其添加到TestMessageLogEntryCollection。(从 ITestMessageLogOwner 继承。) |
![]() |
Delete() | Removes the given test run and its results from the server.(从 ITestRunBase 继承。) |
![]() |
QueryResults() | Returns a collection that contains all test results for this test run. |
![]() |
QueryResults(Boolean) | 返回所有正在运行的测试结果。 |
![]() |
QueryResultsByOutcome(TestOutcome) | Returns a collection of test results for this test run that has the provided test outcome. |
![]() |
QueryResultsByOwner(TeamFoundationIdentity) | Returns a collection of test results for this test run that has the provided test owner. |
![]() |
QueryResultsByStatus(TestResultState) | Returns a collection of test results for this test run that has the provided test status. |
![]() |
Refresh() | Updates the run with new data from the server.(从 ITestRunBase 继承。) |
![]() |
Refresh(DateTime) | Updates the test run with the new data from the server only if there exists a test run with newer timestamp than lastUpdated parameter Returns true if test run was updated with the new data and false otherwise |
![]() |
RefreshLogEntries() | 刷新服务器中的日志项。(从 ITestMessageLogOwner 继承。) |
![]() |
Save() | Writes the new or updated test run to the server.(从 ITestRunBase 继承。) |
![]() |
SaveLogEntries() | 将更改的日志项保存到服务器中。(从 ITestMessageLogOwner 继承。) |
事件
| 名称 | 说明 | |
|---|---|---|
![]() |
AttachmentUploadCompleted | 此事件在附件上载完成时引发。(从 IAttachmentOwner 继承。) |
![]() |
PropertyChanged | (从 INotifyPropertyChanged 继承。) |
备注
这里不会更新任何内容;请不要在这里添加材料。
请参阅
Microsoft.TeamFoundation.TestManagement.Client 命名空间
返回页首
.jpeg)
.gif)
.gif)