OptionalLoadTestConfiguration Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. OptionalLoadTestConfiguration
- com.
Implements
public final class OptionalLoadTestConfiguration
implements JsonSerializable<OptionalLoadTestConfiguration>
Configuration for quick load test.
Constructor Summary
| Constructor | Description |
|---|---|
| OptionalLoadTestConfiguration() |
Creates an instance of Optional |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Optional |
fromJson(JsonReader jsonReader)
Reads an instance of Optional |
| Duration |
getDuration()
Get the duration property: Test run duration in seconds. |
| String |
getEndpointUrl()
Get the endpoint |
| Integer |
getMaxResponseTimeInMs()
Get the max |
| Integer |
getRampUpTime()
Get the ramp |
| Integer |
getRequestsPerSecond()
Get the requests |
| Integer |
getVirtualUsers()
Get the virtual |
|
Optional |
setDuration(Duration duration)
Set the duration property: Test run duration in seconds. |
|
Optional |
setEndpointUrl(String endpointUrl)
Set the endpoint |
|
Optional |
setMaxResponseTimeInMs(Integer maxResponseTimeInMs)
Set the max |
|
Optional |
setRampUpTime(Integer rampUpTime)
Set the ramp |
|
Optional |
setRequestsPerSecond(Integer requestsPerSecond)
Set the requests |
|
Optional |
setVirtualUsers(Integer virtualUsers)
Set the virtual |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
OptionalLoadTestConfiguration
public OptionalLoadTestConfiguration()
Creates an instance of OptionalLoadTestConfiguration class.
Method Details
fromJson
public static OptionalLoadTestConfiguration fromJson(JsonReader jsonReader)
Reads an instance of OptionalLoadTestConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
getDuration
public Duration getDuration()
Get the duration property: Test run duration in seconds.
Returns:
getEndpointUrl
public String getEndpointUrl()
Get the endpointUrl property: Test URL. Provide the complete HTTP URL. For example, https://contoso-app.azurewebsites.net/login.
Returns:
getMaxResponseTimeInMs
public Integer getMaxResponseTimeInMs()
Get the maxResponseTimeInMs property: Maximum response time in milliseconds of the API/endpoint.
Returns:
getRampUpTime
public Integer getRampUpTime()
Get the rampUpTime property: Ramp up time in seconds.
Returns:
getRequestsPerSecond
public Integer getRequestsPerSecond()
Get the requestsPerSecond property: Target throughput (requests per second). This may not be necessarily achieved. The actual throughput will be lower if the application is not capable of handling it.
Returns:
getVirtualUsers
public Integer getVirtualUsers()
Get the virtualUsers property: No of concurrent virtual users.
Returns:
setDuration
public OptionalLoadTestConfiguration setDuration(Duration duration)
Set the duration property: Test run duration in seconds.
Parameters:
Returns:
setEndpointUrl
public OptionalLoadTestConfiguration setEndpointUrl(String endpointUrl)
Set the endpointUrl property: Test URL. Provide the complete HTTP URL. For example, https://contoso-app.azurewebsites.net/login.
Parameters:
Returns:
setMaxResponseTimeInMs
public OptionalLoadTestConfiguration setMaxResponseTimeInMs(Integer maxResponseTimeInMs)
Set the maxResponseTimeInMs property: Maximum response time in milliseconds of the API/endpoint.
Parameters:
Returns:
setRampUpTime
public OptionalLoadTestConfiguration setRampUpTime(Integer rampUpTime)
Set the rampUpTime property: Ramp up time in seconds.
Parameters:
Returns:
setRequestsPerSecond
public OptionalLoadTestConfiguration setRequestsPerSecond(Integer requestsPerSecond)
Set the requestsPerSecond property: Target throughput (requests per second). This may not be necessarily achieved. The actual throughput will be lower if the application is not capable of handling it.
Parameters:
Returns:
setVirtualUsers
public OptionalLoadTestConfiguration setVirtualUsers(Integer virtualUsers)
Set the virtualUsers property: No of concurrent virtual users.
Parameters:
Returns: