LoadTestRun Class
- java.
lang. Object - com.
azure. developer. loadtesting. models. LoadTestRun
- com.
Implements
public final class LoadTestRun
implements JsonSerializable<LoadTestRun>
Load test run model.
Constructor Summary
| Constructor | Description |
|---|---|
| LoadTestRun() |
Creates an instance of Load |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Load |
fromJson(JsonReader jsonReader)
Reads an instance of Load |
|
Auto |
getAutoStopCriteria()
Get the auto |
|
Test |
getCertificate()
Get the certificate property: Certificates metadata. |
| String |
getCreatedBy()
Get the created |
|
Created |
getCreatedByType()
Get the created |
| String |
getCreatedByUri()
Get the created |
|
Offset |
getCreatedDateTime()
Get the created |
| String |
getDescription()
Get the description property: The test run description. |
| String |
getDisplayName()
Get the display |
| Long |
getDuration()
Get the duration property: Test run duration in milliseconds. |
|
Offset |
getEndDateTime()
Get the end |
| Map<String,String> |
getEnvironmentVariables()
Get the environment |
|
List<Error |
getErrorDetails()
Get the error |
| Double |
getEstimatedVirtualUserHours()
Get the estimated |
|
Offset |
getExecutedDateTime()
Get the executed |
|
Offset |
getExecutionEndDateTime()
Get the execution |
|
Offset |
getExecutionStartDateTime()
Get the execution |
|
Load |
getKind()
Get the kind property: Type of test. |
| String |
getLastModifiedBy()
Get the last |
|
Offset |
getLastModifiedDateTime()
Get the last |
|
Load |
getLoadTestConfiguration()
Get the load |
|
Pass |
getPassFailCriteria()
Get the pass |
| String |
getPortalUrl()
Get the portal |
|
Map<String,Test |
getRegionalStatistics()
Get the regional |
|
Request |
getRequestDataLevel()
Get the request |
|
Map<String,Test |
getSecrets()
Get the secrets property: Secrets can be stored in an Azure Key Vault or any other secret store. |
|
Offset |
getStartDateTime()
Get the start |
|
Test |
getStatus()
Get the status property: The test run status. |
| String |
getSubnetId()
Get the subnet |
|
Test |
getTestArtifacts()
Get the test |
| String |
getTestId()
Get the test |
|
Pass |
getTestResult()
Get the test |
| String |
getTestRunId()
Get the test |
|
Map<String,Test |
getTestRunStatistics()
Get the test |
| Double |
getVirtualUserHours()
Get the virtual |
| Integer |
getVirtualUsers()
Get the virtual |
| Boolean |
isDebugLogsEnabled()
Get the debug |
| Boolean |
isPublicIpDisabled()
Get the public |
|
Load |
setAutoStopCriteria(AutoStopCriteria autoStopCriteria)
Set the auto |
|
Load |
setCertificate(TestCertificate certificate)
Set the certificate property: Certificates metadata. |
|
Load |
setCreatedByType(CreatedByType createdByType)
Set the created |
|
Load |
setDebugLogsEnabled(Boolean debugLogsEnabled)
Set the debug |
|
Load |
setDescription(String description)
Set the description property: The test run description. |
|
Load |
setDisplayName(String displayName)
Set the display |
|
Load |
setEnvironmentVariables(Map<String,String> environmentVariables)
Set the environment |
|
Load |
setPassFailCriteria(PassFailCriteria passFailCriteria)
Set the pass |
|
Load |
setRequestDataLevel(RequestDataLevel requestDataLevel)
Set the request |
|
Load |
setSecrets(Map<String,TestSecret> secrets)
Set the secrets property: Secrets can be stored in an Azure Key Vault or any other secret store. |
|
Load |
setTestId(String testId)
Set the test |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
LoadTestRun
public LoadTestRun()
Creates an instance of LoadTestRun class.
Method Details
fromJson
public static LoadTestRun fromJson(JsonReader jsonReader)
Reads an instance of LoadTestRun from the JsonReader.
Parameters:
Returns:
Throws:
getAutoStopCriteria
public AutoStopCriteria getAutoStopCriteria()
Get the autoStopCriteria property: Auto stop criteria for a test. This will automatically stop a load test if the error percentage is high for a certain time window.
Returns:
getCertificate
public TestCertificate getCertificate()
Get the certificate property: Certificates metadata.
Returns:
getCreatedBy
public String getCreatedBy()
Get the createdBy property: The user that created.
Returns:
getCreatedByType
public CreatedByType getCreatedByType()
Get the createdByType property: The type of the entity that created the test run. (E.x. User, ScheduleTrigger, etc).
Returns:
getCreatedByUri
public String getCreatedByUri()
Get the createdByUri property: The URI pointing to the entity that created the test run.
Returns:
getCreatedDateTime
public OffsetDateTime getCreatedDateTime()
Get the createdDateTime property: The creation datetime(RFC 3339 literal format).
Returns:
getDescription
public String getDescription()
Get the description property: The test run description.
Returns:
getDisplayName
public String getDisplayName()
Get the displayName property: Display name of a testRun.
Returns:
getDuration
public Long getDuration()
Get the duration property: Test run duration in milliseconds.
Returns:
getEndDateTime
public OffsetDateTime getEndDateTime()
Get the endDateTime property: The test run end DateTime(RFC 3339 literal format).
Returns:
getEnvironmentVariables
public Map<String,String> getEnvironmentVariables()
Get the environmentVariables property: Environment variables which are defined as a set of <name,value> pairs.
Returns:
getErrorDetails
public List<ErrorDetails> getErrorDetails()
Get the errorDetails property: Error details if there is any failure in load test run.
Returns:
getEstimatedVirtualUserHours
public Double getEstimatedVirtualUserHours()
Get the estimatedVirtualUserHours property: Estimated virtual user hours for the test run.
Returns:
getExecutedDateTime
public OffsetDateTime getExecutedDateTime()
Get the executedDateTime property: Test run initiated time. This is legacy, new developments should use createdDateTime.
Returns:
getExecutionEndDateTime
public OffsetDateTime getExecutionEndDateTime()
Get the executionEndDateTime property: The test run execution end DateTime(RFC 3339 literal format).
Returns:
getExecutionStartDateTime
public OffsetDateTime getExecutionStartDateTime()
Get the executionStartDateTime property: The test run execution start DateTime(RFC 3339 literal format).
Returns:
getKind
public LoadTestKind getKind()
Get the kind property: Type of test.
Returns:
getLastModifiedBy
public String getLastModifiedBy()
Get the lastModifiedBy property: The user that last modified.
Returns:
getLastModifiedDateTime
public OffsetDateTime getLastModifiedDateTime()
Get the lastModifiedDateTime property: The last Modified datetime(RFC 3339 literal format).
Returns:
getLoadTestConfiguration
public LoadTestConfiguration getLoadTestConfiguration()
Get the loadTestConfiguration property: The load test configuration.
Returns:
getPassFailCriteria
public PassFailCriteria getPassFailCriteria()
Get the passFailCriteria property: Pass fail criteria for a test.
Returns:
getPortalUrl
public String getPortalUrl()
Get the portalUrl property: Portal url.
Returns:
getRegionalStatistics
public Map<String,TestRunStatistics> getRegionalStatistics()
Get the regionalStatistics property: Regional statistics. Key is the Azure region name and value is the test run statistics. The region name should of format accepted by ARM, and should be a region supported by Azure Load Testing. For example, East US should be passed as "eastus". The region name must match one of the strings in the "Name" column returned from running the "az account list-locations -o table" Azure CLI command.
Returns:
getRequestDataLevel
public RequestDataLevel getRequestDataLevel()
Get the requestDataLevel property: Request data collection level for test run.
Returns:
getSecrets
public Map<String,TestSecret> getSecrets()
Get the secrets property: Secrets can be stored in an Azure Key Vault or any other secret store. If the secret is stored in an Azure Key Vault, the value should be the secret identifier and the type should be AKV_SECRET_URI. If the secret is stored elsewhere, the secret value should be provided directly and the type should be SECRET_VALUE.
Returns:
getStartDateTime
public OffsetDateTime getStartDateTime()
Get the startDateTime property: The test run start DateTime(RFC 3339 literal format).
Returns:
getStatus
public TestRunStatus getStatus()
Get the status property: The test run status.
Returns:
getSubnetId
public String getSubnetId()
Get the subnetId property: Subnet ID on which the load test instances should run.
Returns:
getTestArtifacts
public TestRunArtifacts getTestArtifacts()
Get the testArtifacts property: Collection of test run artifacts.
Returns:
getTestId
public String getTestId()
Get the testId property: Associated test Id.
Returns:
getTestResult
public PassFailTestResult getTestResult()
Get the testResult property: Test result for pass/Fail criteria used during the test run.
Returns:
getTestRunId
public String getTestRunId()
Get the testRunId property: Unique test run identifier for the load test run, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
Returns:
getTestRunStatistics
public Map<String,TestRunStatistics> getTestRunStatistics()
Get the testRunStatistics property: Test run statistics. Key is the sampler name and value is the set of statistics for performance metrics like response time, throughput, etc. from the load test run. The sampler name is the same as the name mentioned in the test script. Sampler name "Total" represents the aggregated statistics of all the samplers.
Returns:
getVirtualUserHours
public Double getVirtualUserHours()
Get the virtualUserHours property: Virtual user hours consumed by the test run.
Returns:
getVirtualUsers
public Integer getVirtualUsers()
Get the virtualUsers property: Number of virtual users, for which test has been run.
Returns:
isDebugLogsEnabled
public Boolean isDebugLogsEnabled()
Get the debugLogsEnabled property: Enable or disable debug level logging. True if debug logs are enabled for the test run. False otherwise.
Returns:
isPublicIpDisabled
public Boolean isPublicIpDisabled()
Get the publicIpDisabled property: Inject load test engines without deploying public IP for outbound access.
Returns:
setAutoStopCriteria
public LoadTestRun setAutoStopCriteria(AutoStopCriteria autoStopCriteria)
Set the autoStopCriteria property: Auto stop criteria for a test. This will automatically stop a load test if the error percentage is high for a certain time window.
Parameters:
Returns:
setCertificate
public LoadTestRun setCertificate(TestCertificate certificate)
Set the certificate property: Certificates metadata.
Parameters:
Returns:
setCreatedByType
public LoadTestRun setCreatedByType(CreatedByType createdByType)
Set the createdByType property: The type of the entity that created the test run. (E.x. User, ScheduleTrigger, etc).
Parameters:
Returns:
setDebugLogsEnabled
public LoadTestRun setDebugLogsEnabled(Boolean debugLogsEnabled)
Set the debugLogsEnabled property: Enable or disable debug level logging. True if debug logs are enabled for the test run. False otherwise.
Parameters:
Returns:
setDescription
public LoadTestRun setDescription(String description)
Set the description property: The test run description.
Parameters:
Returns:
setDisplayName
public LoadTestRun setDisplayName(String displayName)
Set the displayName property: Display name of a testRun.
Parameters:
Returns:
setEnvironmentVariables
public LoadTestRun setEnvironmentVariables(Map<String,String> environmentVariables)
Set the environmentVariables property: Environment variables which are defined as a set of <name,value> pairs.
Parameters:
Returns:
setPassFailCriteria
public LoadTestRun setPassFailCriteria(PassFailCriteria passFailCriteria)
Set the passFailCriteria property: Pass fail criteria for a test.
Parameters:
Returns:
setRequestDataLevel
public LoadTestRun setRequestDataLevel(RequestDataLevel requestDataLevel)
Set the requestDataLevel property: Request data collection level for test run.
Parameters:
Returns:
setSecrets
public LoadTestRun setSecrets(Map<String,TestSecret> secrets)
Set the secrets property: Secrets can be stored in an Azure Key Vault or any other secret store. If the secret is stored in an Azure Key Vault, the value should be the secret identifier and the type should be AKV_SECRET_URI. If the secret is stored elsewhere, the secret value should be provided directly and the type should be SECRET_VALUE.
Parameters:
Returns:
setTestId
public LoadTestRun setTestId(String testId)
Set the testId property: Associated test Id.
Parameters:
Returns: