TestRun interface
负载测试运行模型
属性
| certificate | 证书元数据 |
| created |
创建的用户。 |
| created |
创建日期/时间(ISO 8601 文本格式)。 |
| description | 测试运行说明。 |
| display |
testRun 的显示名称。 |
| duration | 测试运行持续时间(以毫秒为单位)。 |
| end |
测试运行结束 DateTime(ISO 8601 文本格式)。 |
| environment |
定义为一组 <名称、值> 对的环境变量。 |
| error |
负载测试运行中是否存在任何失败的错误详细信息 |
| executed |
测试运行启动的时间。 |
| last |
上次修改的用户。 |
| last |
上次修改日期时间(ISO 8601 文本格式)。 |
| load |
负载测试配置。 |
| pass |
通过测试的失败条件。 |
| portal |
门户 URL。 |
| secrets | 机密可以存储在 Azure Key Vault 或任何其他机密存储中。 如果机密存储在 Azure Key Vault 中,该值应为机密标识符,并且类型应AKV_SECRET_URI。 如果机密存储在其他位置,则应直接提供机密值,并且类型应SECRET_VALUE。 |
| start |
测试运行 start DateTime(ISO 8601 文本格式)。 |
| status | 测试运行状态。 |
| subnet |
负载测试实例应在其中运行的子网 ID。 |
| test |
测试运行项目的集合 |
| test |
关联的测试 ID。 |
| test |
测试运行期间使用的通过/失败条件的测试结果。 |
| test |
唯一的测试运行名称作为标识符 |
| test |
测试运行统计信息。 |
| virtual |
已为其运行测试的虚拟用户数。 |
属性详细信息
certificate
createdBy
创建的用户。
createdBy?: string
属性值
string
createdDateTime
创建日期/时间(ISO 8601 文本格式)。
createdDateTime?: string | Date
属性值
string | Date
description
测试运行说明。
description?: string
属性值
string
displayName
testRun 的显示名称。
displayName?: string
属性值
string
duration
测试运行持续时间(以毫秒为单位)。
duration?: number
属性值
number
endDateTime
测试运行结束 DateTime(ISO 8601 文本格式)。
endDateTime?: string | Date
属性值
string | Date
environmentVariables
定义为一组 <名称、值> 对的环境变量。
environmentVariables?: Record<string, string>
属性值
Record<string, string>
errorDetails
executedDateTime
测试运行启动的时间。
executedDateTime?: string | Date
属性值
string | Date
lastModifiedBy
上次修改的用户。
lastModifiedBy?: string
属性值
string
lastModifiedDateTime
上次修改日期时间(ISO 8601 文本格式)。
lastModifiedDateTime?: string | Date
属性值
string | Date
loadTestConfiguration
passFailCriteria
portalUrl
门户 URL。
portalUrl?: string
属性值
string
secrets
机密可以存储在 Azure Key Vault 或任何其他机密存储中。 如果机密存储在 Azure Key Vault 中,该值应为机密标识符,并且类型应AKV_SECRET_URI。 如果机密存储在其他位置,则应直接提供机密值,并且类型应SECRET_VALUE。
secrets?: Record<string, Secret>
属性值
Record<string, Secret>
startDateTime
测试运行 start DateTime(ISO 8601 文本格式)。
startDateTime?: string | Date
属性值
string | Date
status
测试运行状态。
status?: "VALIDATION_SUCCESS" | "VALIDATION_FAILURE" | "FAILED" | "ACCEPTED" | "NOTSTARTED" | "PROVISIONING" | "PROVISIONED" | "CONFIGURING" | "CONFIGURED" | "EXECUTING" | "EXECUTED" | "DEPROVISIONING" | "DEPROVISIONED" | "DONE" | "CANCELLING" | "CANCELLED"
属性值
"VALIDATION_SUCCESS" | "VALIDATION_FAILURE" | "FAILED" | "ACCEPTED" | "NOTSTARTED" | "PROVISIONING" | "PROVISIONED" | "CONFIGURING" | "CONFIGURED" | "EXECUTING" | "EXECUTED" | "DEPROVISIONING" | "DEPROVISIONED" | "DONE" | "CANCELLING" | "CANCELLED"
subnetId
负载测试实例应在其中运行的子网 ID。
subnetId?: string
属性值
string
testArtifacts
testId
关联的测试 ID。
testId?: string
属性值
string
testResult
测试运行期间使用的通过/失败条件的测试结果。
testResult?: "PASSED" | "NOT_APPLICABLE" | "FAILED"
属性值
"PASSED" | "NOT_APPLICABLE" | "FAILED"
testRunId
唯一的测试运行名称作为标识符
testRunId?: string
属性值
string
testRunStatistics
测试运行统计信息。
testRunStatistics?: Record<string, TestRunStatistics>
属性值
Record<string, TestRunStatistics>
virtualUsers
已为其运行测试的虚拟用户数。
virtualUsers?: number
属性值
number