通过


你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TestRun interface

负载测试运行模型

属性

certificate

证书元数据

createdBy

创建的用户。

createdDateTime

创建日期/时间(ISO 8601 文本格式)。

description

测试运行说明。

displayName

testRun 的显示名称。

duration

测试运行持续时间(以毫秒为单位)。

endDateTime

测试运行结束 DateTime(ISO 8601 文本格式)。

environmentVariables

定义为一组 <名称、值> 对的环境变量。

errorDetails

负载测试运行中是否存在任何失败的错误详细信息

executedDateTime

测试运行启动的时间。

lastModifiedBy

上次修改的用户。

lastModifiedDateTime

上次修改日期时间(ISO 8601 文本格式)。

loadTestConfiguration

负载测试配置。

passFailCriteria

通过测试的失败条件。

portalUrl

门户 URL。

secrets

机密可以存储在 Azure Key Vault 或任何其他机密存储中。 如果机密存储在 Azure Key Vault 中,该值应为机密标识符,并且类型应AKV_SECRET_URI。 如果机密存储在其他位置,则应直接提供机密值,并且类型应SECRET_VALUE。

startDateTime

测试运行 start DateTime(ISO 8601 文本格式)。

status

测试运行状态。

subnetId

负载测试实例应在其中运行的子网 ID。

testArtifacts

测试运行项目的集合

testId

关联的测试 ID。

testResult

测试运行期间使用的通过/失败条件的测试结果。

testRunId

唯一的测试运行名称作为标识符

testRunStatistics

测试运行统计信息。

virtualUsers

已为其运行测试的虚拟用户数。

属性详细信息

certificate

证书元数据

certificate?: CertificateMetadata

属性值

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

负载测试运行中是否存在任何失败的错误详细信息

errorDetails?: ErrorDetails[]

属性值

executedDateTime

测试运行启动的时间。

executedDateTime?: string | Date

属性值

string | Date

lastModifiedBy

上次修改的用户。

lastModifiedBy?: string

属性值

string

lastModifiedDateTime

上次修改日期时间(ISO 8601 文本格式)。

lastModifiedDateTime?: string | Date

属性值

string | Date

loadTestConfiguration

负载测试配置。

loadTestConfiguration?: LoadTestConfiguration

属性值

passFailCriteria

通过测试的失败条件。

passFailCriteria?: 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

测试运行项目的集合

testArtifacts?: TestRunArtifacts

属性值

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