Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
page_type languages products urlFragment
sample
java
azure
azure-load-testing
developer-loadtesting-samples

Azure Developer Loadtesting Samples client library for Java

This document explains samples and how to use them.

Examples

Following section document various examples.

Hello World Samples

  • HelloWorld.java - Contains samples for following scenarios:
    • Authenticate client
    • Create Load Test
    • Upload Test File
    • Create and start Test Run, and get metrics

List Operations Samples

Long Running Operations Samples

Troubleshooting

General

Load Testing clients raise exceptions. For example, if you try to get a load test or test run resource after it is deleted a 404 error is returned, indicating resource not found. In the following snippet, the error is handled gracefully by catching the exception and displaying additional information about the error.

try {
    testRunClient.getTestRunWithResponse("FAKE_TEST_RUN_ID", null);
} catch (ResourceNotFoundException e) {
    System.out.println(e.getMessage());
}