LoadTestAdministrationClient.CloneTest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CloneTest(WaitUntil, String, RequestContent, RequestContext) |
Clone the given test with optional overrides applied to the clone test. |
| CloneTest(WaitUntil, String, String, String, String, CancellationToken) |
Clone the given test with optional overrides applied to the clone test. |
CloneTest(WaitUntil, String, RequestContent, RequestContext)
Clone the given test with optional overrides applied to the clone test.
public virtual Azure.Operation<BinaryData> CloneTest(Azure.WaitUntil waitUntil, string testId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CloneTest : Azure.WaitUntil * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Operation<BinaryData>
override this.CloneTest : Azure.WaitUntil * string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Operation<BinaryData>
Public Overridable Function CloneTest (waitUntil As WaitUntil, testId As String, content As RequestContent, Optional context As RequestContext = Nothing) As 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
CloneTest(WaitUntil, String, String, String, String, CancellationToken)
Clone the given test with optional overrides applied to the clone test.
public virtual Azure.Operation<Azure.Developer.LoadTesting.LoadTest> CloneTest(Azure.WaitUntil waitUntil, string testId, string newTestId, string displayName = default, string description = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CloneTest : Azure.WaitUntil * string * string * string * string * System.Threading.CancellationToken -> Azure.Operation<Azure.Developer.LoadTesting.LoadTest>
override this.CloneTest : Azure.WaitUntil * string * string * string * string * System.Threading.CancellationToken -> Azure.Operation<Azure.Developer.LoadTesting.LoadTest>
Public Overridable Function CloneTest (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 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.