CustomTestCaseResultData interface

此数据模型用于 TestRunDataProvider,并为测试运行提供 TestCaseResultsData

属性

area

对测试的区域路径的引用。

automatedTestName

执行的测试的完全限定名称。

automatedTestStorage

测试所属的容器。

build

浅表引用与测试结果关联的生成。

computerName

执行测试的计算机名称。

configuration

对测试配置的引用。 类型 ShallowReference。

customFields

用于对测试结果进行其他分类的自定义数据数组。 CustomTestField 的值不能超过 1KB。

durationInMs

测试执行的持续时间(以毫秒为单位)。 如果未提供的值将设置为 CompletedDate - StartedDate

errorMessage

测试执行中的错误消息。

id

测试结果的 ID。

outcome

测试结果的测试结果。 有效值 = (Unspecified、None、Passed、Failed、Inconclusive、Timeout、Aborted、Blocked、NotExecuted、Warning、Error、NotApplicable、Paused、InProgress、NotImpacted)

owner

对测试所有者的引用。

priority

执行的测试的优先级。

stackTrace

具有 maxSize= 1000 chars 的 Stacktrace。

testCase

对执行的测试的引用。

testCaseReferenceId

测试结果使用的测试的引用 ID。 类型 TestResultMetaData

testRun

对测试运行的引用。

testSuite

对测试套件测试用例工作项的引用是其中的一部分。

属性详细信息

area

对测试的区域路径的引用。

area: ShallowReference

属性值

automatedTestName

执行的测试的完全限定名称。

automatedTestName: string

属性值

string

automatedTestStorage

测试所属的容器。

automatedTestStorage: string

属性值

string

build

浅表引用与测试结果关联的生成。

build: ShallowReference

属性值

computerName

执行测试的计算机名称。

computerName: string

属性值

string

configuration

对测试配置的引用。 类型 ShallowReference。

configuration: ShallowReference

属性值

customFields

用于对测试结果进行其他分类的自定义数据数组。 CustomTestField 的值不能超过 1KB。

customFields: CustomTestField[]

属性值

durationInMs

测试执行的持续时间(以毫秒为单位)。 如果未提供的值将设置为 CompletedDate - StartedDate

durationInMs: number

属性值

number

errorMessage

测试执行中的错误消息。

errorMessage: string

属性值

string

id

测试结果的 ID。

id: number

属性值

number

outcome

测试结果的测试结果。 有效值 = (Unspecified、None、Passed、Failed、Inconclusive、Timeout、Aborted、Blocked、NotExecuted、Warning、Error、NotApplicable、Paused、InProgress、NotImpacted)

outcome: string

属性值

string

owner

对测试所有者的引用。

owner: IdentityRef

属性值

priority

执行的测试的优先级。

priority: number

属性值

number

stackTrace

具有 maxSize= 1000 chars 的 Stacktrace。

stackTrace: string

属性值

string

testCase

对执行的测试的引用。

testCase: ShallowReference

属性值

testCaseReferenceId

测试结果使用的测试的引用 ID。 类型 TestResultMetaData

testCaseReferenceId: number

属性值

number

testRun

对测试运行的引用。

testRun: ShallowReference

属性值

testSuite

对测试套件测试用例工作项的引用是其中的一部分。

testSuite: ShallowReference

属性值