Share via


LoadTestAdministrationClient.CloneTestAsync Method

Definition

Overloads

Name Description
CloneTestAsync(WaitUntil, String, RequestContent, RequestContext)

Clone the given test with optional overrides applied to the clone test.

CloneTestAsync(WaitUntil, String, String, String, String, CancellationToken)

Clone the given test with optional overrides applied to the clone test.

CloneTestAsync(WaitUntil, String, RequestContent, RequestContext)

Source:
LoadTestAdministrationClient.cs

Clone the given test with optional overrides applied to the clone test.

public virtual System.Threading.Tasks.Task<Azure.Operation<BinaryData>> CloneTestAsync(Azure.WaitUntil waitUntil, string testId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CloneTestAsync : Azure.WaitUntil * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation<BinaryData>>
override this.CloneTestAsync : Azure.WaitUntil * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation<BinaryData>>
Public Overridable Function CloneTestAsync (waitUntil As WaitUntil, testId As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Operation(Of BinaryData))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

testId
String

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

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

testId or content is null.

testId is an empty string, and was expected to be non-empty.

Applies to

CloneTestAsync(WaitUntil, String, String, String, String, CancellationToken)

Source:
LoadTestAdministrationClient.cs

Clone the given test with optional overrides applied to the clone test.

public virtual System.Threading.Tasks.Task<Azure.Operation<Azure.Developer.LoadTesting.LoadTest>> CloneTestAsync(Azure.WaitUntil waitUntil, string testId, string newTestId, string displayName = default, string description = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CloneTestAsync : Azure.WaitUntil * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation<Azure.Developer.LoadTesting.LoadTest>>
override this.CloneTestAsync : Azure.WaitUntil * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation<Azure.Developer.LoadTesting.LoadTest>>
Public Overridable Function CloneTestAsync (waitUntil As WaitUntil, testId As String, newTestId As String, Optional displayName As String = Nothing, Optional description As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Operation(Of LoadTest))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

testId
String

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

newTestId
String

Unique identifier for the new test that will be created.

displayName
String

Display Name override for the newly created test.

description
String

Description override for the newly created test.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

testId or newTestId is null.

testId or newTestId is an empty string, and was expected to be non-empty.

Applies to