Condividi tramite


LoadTestRunClient.GetTestRunsAsync Method

Definition

Overloads

GetTestRunsAsync(String, String, String, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, String, Nullable<Int32>, IEnumerable<String>, IEnumerable<String>, RequestContext)

Source:
LoadTestRunClient.cs

[Protocol Method] Get all test runs for the given filters.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.AsyncPageable<BinaryData> GetTestRunsAsync(string orderby, string search, string testId, DateTimeOffset? executionFrom, DateTimeOffset? executionTo, string status, int? maxPageSize, System.Collections.Generic.IEnumerable<string> createdByTypes, System.Collections.Generic.IEnumerable<string> testIds, Azure.RequestContext context);
abstract member GetTestRunsAsync : string * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Nullable<int> * seq<string> * seq<string> * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
override this.GetTestRunsAsync : string * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Nullable<int> * seq<string> * seq<string> * Azure.RequestContext -> Azure.AsyncPageable<BinaryData>
Public Overridable Function GetTestRunsAsync (orderby As String, search As String, testId As String, executionFrom As Nullable(Of DateTimeOffset), executionTo As Nullable(Of DateTimeOffset), status As String, maxPageSize As Nullable(Of Integer), createdByTypes As IEnumerable(Of String), testIds As IEnumerable(Of String), context As RequestContext) As AsyncPageable(Of BinaryData)

Parameters

orderby
String

Sort on the supported fields in (field asc/desc) format. eg: createdDateTime asc. Supported fields - createdDateTime, executedDateTime (legacy)

search
String

Prefix based, case sensitive search on searchable fields - description, executedUser. For example, to search for a test run, with description 500 VUs, the search parameter can be 500.

testId
String

Unique name of an existing load test.

executionFrom
Nullable<DateTimeOffset>

Start DateTime(RFC 3339 literal format) of test-run execution time filter range.

executionTo
Nullable<DateTimeOffset>

End DateTime(RFC 3339 literal format) of test-run execution time filter range.

status
String

Comma separated list of test run status.

maxPageSize
Nullable<Int32>

Number of results in response.

createdByTypes
IEnumerable<String>

Comma separated list of type of entities that have created the test run.

testIds
IEnumerable<String>

Comma-separated list of test IDs. If you are using testIds, do not send a value for testId.

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

Service returned a non-success status code.

Applies to

GetTestRunsAsync(String, String, String, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>, String, Nullable<Int32>, IEnumerable<String>, IEnumerable<String>, CancellationToken)

Source:
LoadTestRunClient.cs

Get all test runs for the given filters.

public virtual Azure.AsyncPageable<Azure.Developer.LoadTesting.LoadTestRun> GetTestRunsAsync(string orderby = default, string search = default, string testId = default, DateTimeOffset? executionFrom = default, DateTimeOffset? executionTo = default, string status = default, int? maxPageSize = default, System.Collections.Generic.IEnumerable<string> createdByTypes = default, System.Collections.Generic.IEnumerable<string> testIds = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTestRunsAsync : string * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Nullable<int> * seq<string> * seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Developer.LoadTesting.LoadTestRun>
override this.GetTestRunsAsync : string * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Nullable<int> * seq<string> * seq<string> * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.Developer.LoadTesting.LoadTestRun>
Public Overridable Function GetTestRunsAsync (Optional orderby As String = Nothing, Optional search As String = Nothing, Optional testId As String = Nothing, Optional executionFrom As Nullable(Of DateTimeOffset) = Nothing, Optional executionTo As Nullable(Of DateTimeOffset) = Nothing, Optional status As String = Nothing, Optional maxPageSize As Nullable(Of Integer) = Nothing, Optional createdByTypes As IEnumerable(Of String) = Nothing, Optional testIds As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of LoadTestRun)

Parameters

orderby
String

Sort on the supported fields in (field asc/desc) format. eg: createdDateTime asc. Supported fields - createdDateTime, executedDateTime (legacy)

search
String

Prefix based, case sensitive search on searchable fields - description, executedUser. For example, to search for a test run, with description 500 VUs, the search parameter can be 500.

testId
String

Unique name of an existing load test.

executionFrom
Nullable<DateTimeOffset>

Start DateTime(RFC 3339 literal format) of test-run execution time filter range.

executionTo
Nullable<DateTimeOffset>

End DateTime(RFC 3339 literal format) of test-run execution time filter range.

status
String

Comma separated list of test run status.

maxPageSize
Nullable<Int32>

Number of results in response.

createdByTypes
IEnumerable<String>

Comma separated list of type of entities that have created the test run.

testIds
IEnumerable<String>

Comma-separated list of test IDs. If you are using testIds, do not send a value for testId.

cancellationToken
CancellationToken

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

Returns

Exceptions

Service returned a non-success status code.

Applies to