LoadTestConfiguration Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. LoadTestConfiguration
- com.
Implements
public final class LoadTestConfiguration
implements JsonSerializable<LoadTestConfiguration>
Configurations for the load test.
Constructor Summary
| Constructor | Description |
|---|---|
| LoadTestConfiguration() |
Creates an instance of Load |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Load |
fromJson(JsonReader jsonReader)
Reads an instance of Load |
| Integer |
getEngineInstances()
Get the engine |
|
Optional |
getOptionalLoadTestConfiguration()
Get the optional |
|
List<Regional |
getRegionalLoadTestConfiguration()
Get the regional |
| Boolean |
isQuickStartTest()
Get the quick |
| Boolean |
isSplitAllCsvs()
Get the split |
|
Load |
setEngineInstances(Integer engineInstances)
Set the engine |
|
Load |
setOptionalLoadTestConfiguration(OptionalLoadTestConfiguration optionalLoadTestConfiguration)
Set the optional |
|
Load |
setQuickStartTest(Boolean quickStartTest)
Set the quick |
|
Load |
setRegionalLoadTestConfiguration(List<RegionalConfiguration> regionalLoadTestConfiguration)
Set the regional |
|
Load |
setSplitAllCsvs(Boolean splitAllCsvs)
Set the split |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
LoadTestConfiguration
public LoadTestConfiguration()
Creates an instance of LoadTestConfiguration class.
Method Details
fromJson
public static LoadTestConfiguration fromJson(JsonReader jsonReader)
Reads an instance of LoadTestConfiguration from the JsonReader.
Parameters:
Returns:
Throws:
getEngineInstances
public Integer getEngineInstances()
Get the engineInstances property: The number of engine instances to execute load test. Supported values are in range of 1-400. Required for creating a new test.
Returns:
getOptionalLoadTestConfiguration
public OptionalLoadTestConfiguration getOptionalLoadTestConfiguration()
Get the optionalLoadTestConfiguration property: Configuration for quick load test.
Returns:
getRegionalLoadTestConfiguration
public List<RegionalConfiguration> getRegionalLoadTestConfiguration()
Get the regionalLoadTestConfiguration property: Region distribution configuration for the load test.
Returns:
isQuickStartTest
public Boolean isQuickStartTest()
Get the quickStartTest property: If true, optionalLoadTestConfig is required and JMX script for the load test is not required to upload.
Returns:
isSplitAllCsvs
public Boolean isSplitAllCsvs()
Get the splitAllCsvs property: If false, Azure Load Testing copies and processes your input files unmodified across all test engine instances. If true, Azure Load Testing splits the CSV input data evenly across all engine instances. If you provide multiple CSV files, each file will be split evenly.
Returns:
setEngineInstances
public LoadTestConfiguration setEngineInstances(Integer engineInstances)
Set the engineInstances property: The number of engine instances to execute load test. Supported values are in range of 1-400. Required for creating a new test.
Parameters:
Returns:
setOptionalLoadTestConfiguration
public LoadTestConfiguration setOptionalLoadTestConfiguration(OptionalLoadTestConfiguration optionalLoadTestConfiguration)
Set the optionalLoadTestConfiguration property: Configuration for quick load test.
Parameters:
Returns:
setQuickStartTest
public LoadTestConfiguration setQuickStartTest(Boolean quickStartTest)
Set the quickStartTest property: If true, optionalLoadTestConfig is required and JMX script for the load test is not required to upload.
Parameters:
Returns:
setRegionalLoadTestConfiguration
public LoadTestConfiguration setRegionalLoadTestConfiguration(List<RegionalConfiguration> regionalLoadTestConfiguration)
Set the regionalLoadTestConfiguration property: Region distribution configuration for the load test.
Parameters:
Returns:
setSplitAllCsvs
public LoadTestConfiguration setSplitAllCsvs(Boolean splitAllCsvs)
Set the splitAllCsvs property: If false, Azure Load Testing copies and processes your input files unmodified across all test engine instances. If true, Azure Load Testing splits the CSV input data evenly across all engine instances. If you provide multiple CSV files, each file will be split evenly.
Parameters:
Returns: