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

LoadTestRun Class

Definition

Load test run model.

public class LoadTestRun : System.ClientModel.Primitives.IJsonModel<Azure.Developer.LoadTesting.LoadTestRun>, System.ClientModel.Primitives.IPersistableModel<Azure.Developer.LoadTesting.LoadTestRun>
type LoadTestRun = class
    interface IJsonModel<LoadTestRun>
    interface IPersistableModel<LoadTestRun>
Public Class LoadTestRun
Implements IJsonModel(Of LoadTestRun), IPersistableModel(Of LoadTestRun)
Inheritance
LoadTestRun
Implements

Constructors

LoadTestRun()

Initializes a new instance of LoadTestRun.

Properties

AutoStopCriteria

Auto stop criteria for a test. This will automatically stop a load test if the error percentage is high for a certain time window.

Certificate

Certificates metadata.

CreatedBy

The user that created.

CreatedByType

The type of the entity that created the test run. (E.x. User, ScheduleTrigger, etc).

CreatedDateTime

The creation datetime(RFC 3339 literal format).

DebugLogsEnabled

Enable or disable debug level logging. True if debug logs are enabled for the test run. False otherwise.

Description

The test run description.

DisplayName

Display name of a testRun.

Duration

Test run duration in milliseconds.

EndDateTime

The test run end DateTime(RFC 3339 literal format).

EnvironmentVariables

Environment variables which are defined as a set of <name,value> pairs.

ErrorDetails

Error details if there is any failure in load test run.

ExecutedDateTime

Test run initiated time.

Kind

Type of test.

LastModifiedBy

The user that last modified.

LastModifiedDateTime

The last Modified datetime(RFC 3339 literal format).

LoadTestConfiguration

The load test configuration.

PassFailCriteria

Pass fail criteria for a test.

PortalUri

Portal url.

PublicIpDisabled

Inject load test engines without deploying public IP for outbound access.

RegionalStatistics

Regional statistics. Key is the Azure region name and value is the test run statistics. The region name should of format accepted by ARM, and should be a region supported by Azure Load Testing. For example, East US should be passed as "eastus". The region name must match one of the strings in the "Name" column returned from running the "az account list-locations -o table" Azure CLI command.

RequestDataLevel

Request data collection level for test run.

Secrets

Secrets can be stored in an Azure Key Vault or any other secret store. If the secret is stored in an Azure Key Vault, the value should be the secret identifier and the type should be AKV_SECRET_URI. If the secret is stored elsewhere, the secret value should be provided directly and the type should be SECRET_VALUE.

StartDateTime

The test run start DateTime(RFC 3339 literal format).

Status

The test run status.

SubnetId

Subnet ID on which the load test instances should run.

TestArtifacts

Collection of test run artifacts.

TestId

Associated test Id.

TestResult

Test result for pass/Fail criteria used during the test run.

TestRunId

Unique test run identifier for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.

TestRunStatistics

Test run statistics. Key is the sampler name and value is the set of statistics for performance metrics like response time, throughput, etc. from the load test run. The sampler name is the same as the name mentioned in the test script. Sampler name "Total" represents the aggregated statistics of all the samplers.

VirtualUserHours

Virtual user hours consumed by the test run.

VirtualUsers

Number of virtual users, for which test has been run.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<LoadTestRun>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<LoadTestRun>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LoadTestRun>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LoadTestRun>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<LoadTestRun>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to