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

LoadTestingModelFactory.TestProfile Method

Definition

Initializes a new instance of TestProfile.

public static Azure.Developer.LoadTesting.TestProfile TestProfile(string testProfileId = default, string displayName = default, string description = default, string testId = default, Azure.Core.ResourceIdentifier targetResourceId = default, Azure.Developer.LoadTesting.TargetResourceConfigurations targetResourceConfigurations = default, DateTimeOffset? createdDateTime = default, string createdBy = default, DateTimeOffset? lastModifiedDateTime = default, string lastModifiedBy = default);
static member TestProfile : string * string * string * string * Azure.Core.ResourceIdentifier * Azure.Developer.LoadTesting.TargetResourceConfigurations * Nullable<DateTimeOffset> * string * Nullable<DateTimeOffset> * string -> Azure.Developer.LoadTesting.TestProfile
Public Shared Function TestProfile (Optional testProfileId As String = Nothing, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional testId As String = Nothing, Optional targetResourceId As ResourceIdentifier = Nothing, Optional targetResourceConfigurations As TargetResourceConfigurations = 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 TestProfile

Parameters

testProfileId
String

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

displayName
String

Display name of the test profile.

description
String

Description for the test profile.

testId
String

Associated test ID for the test profile. This property is required for creating a Test Profile and it's not allowed to be updated.

targetResourceId
ResourceIdentifier

Target resource ID on which the test profile is created. This property is required for creating a Test Profile and it's not allowed to be updated.

targetResourceConfigurations
TargetResourceConfigurations

Configurations of the target resource on which testing would be done. 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.

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 TestProfile instance for mocking.

Applies to