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

LoadTestingModelFactory.TestProfileRun Method

Definition

Initializes a new instance of TestProfileRun.

public static Azure.Developer.LoadTesting.TestProfileRun TestProfileRun(string testProfileRunId = default, string displayName = default, string description = default, string testProfileId = default, Azure.Core.ResourceIdentifier targetResourceId = default, Azure.Developer.LoadTesting.TargetResourceConfigurations targetResourceConfigurations = default, Azure.Developer.LoadTesting.TestProfileRunStatus? status = default, System.Collections.Generic.IEnumerable<Azure.Developer.LoadTesting.ErrorDetails> errorDetails = default, DateTimeOffset? startDateTime = default, DateTimeOffset? endDateTime = default, long? durationInSeconds = default, System.Collections.Generic.IReadOnlyDictionary<string,Azure.Developer.LoadTesting.TestRunDetail> testRunDetails = default, System.Collections.Generic.IEnumerable<Azure.Developer.LoadTesting.TestProfileRunRecommendation> recommendations = default, DateTimeOffset? createdDateTime = default, string createdBy = default, DateTimeOffset? lastModifiedDateTime = default, string lastModifiedBy = default);
static member TestProfileRun : string * string * string * string * Azure.Core.ResourceIdentifier * Azure.Developer.LoadTesting.TargetResourceConfigurations * Nullable<Azure.Developer.LoadTesting.TestProfileRunStatus> * seq<Azure.Developer.LoadTesting.ErrorDetails> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<int64> * System.Collections.Generic.IReadOnlyDictionary<string, Azure.Developer.LoadTesting.TestRunDetail> * seq<Azure.Developer.LoadTesting.TestProfileRunRecommendation> * Nullable<DateTimeOffset> * string * Nullable<DateTimeOffset> * string -> Azure.Developer.LoadTesting.TestProfileRun
Public Shared Function TestProfileRun (Optional testProfileRunId As String = Nothing, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional testProfileId As String = Nothing, Optional targetResourceId As ResourceIdentifier = Nothing, Optional targetResourceConfigurations As TargetResourceConfigurations = Nothing, Optional status As Nullable(Of TestProfileRunStatus) = Nothing, Optional errorDetails As IEnumerable(Of ErrorDetails) = Nothing, Optional startDateTime As Nullable(Of DateTimeOffset) = Nothing, Optional endDateTime As Nullable(Of DateTimeOffset) = Nothing, Optional durationInSeconds As Nullable(Of Long) = Nothing, Optional testRunDetails As IReadOnlyDictionary(Of String, TestRunDetail) = Nothing, Optional recommendations As IEnumerable(Of TestProfileRunRecommendation) = Nothing, Optional createdDateTime As Nullable(Of DateTimeOffset) = Nothing, Optional createdBy As String = Nothing, Optional lastModifiedDateTime As Nullable(Of DateTimeOffset) = Nothing, Optional lastModifiedBy As String = Nothing) As TestProfileRun

Parameters

testProfileRunId
String

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

displayName
String

Display name for the test profile run.

description
String

The test profile run description.

testProfileId
String

Associated test profile ID for the test profile run. This is required to create a test profile run and can't be updated.

targetResourceId
ResourceIdentifier

Target resource ID on which the test profile run is created.

targetResourceConfigurations
TargetResourceConfigurations

Configurations of the target resource on which the test profile ran. Please note TargetResourceConfigurations is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include FunctionFlexConsumptionTargetResourceConfigurations.

status
Nullable<TestProfileRunStatus>

The test profile run status.

errorDetails
IEnumerable<ErrorDetails>

Error details if there is any failure in test profile run. These errors are specific to the Test Profile Run.

startDateTime
Nullable<DateTimeOffset>

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

endDateTime
Nullable<DateTimeOffset>

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

durationInSeconds
Nullable<Int64>

Test profile run duration in seconds.

testRunDetails
IReadOnlyDictionary<String,TestRunDetail>

Details of the test runs ran as part of the test profile run. Key is the testRunId of the corresponding testRun.

recommendations
IEnumerable<TestProfileRunRecommendation>

Recommendations provided based on a successful test profile run.

createdDateTime
Nullable<DateTimeOffset>

The creation datetime(RFC 3339 literal format).

createdBy
String

The user that created.

lastModifiedDateTime
Nullable<DateTimeOffset>

The last Modified datetime(RFC 3339 literal format).

lastModifiedBy
String

The user that last modified.

Returns

A new TestProfileRun instance for mocking.

Applies to