Rerun an existing test run by using the Azure CLI extension for Azure Load Testing
This project demonstrates how to use an Azure CLI sample script to rerun an existing test run by using on Azure Load Testing.
In this sample script we perform the following operations:
- Get the most recently run test run ID for a test
- Rerun the test
- Display the client side metrics for the test run
Prerequisites
- An existing Azure subscription. If you don't already have a Microsoft Azure subscription, you can create one for free here.
- An existing resource group.
- Azure CLI. You can install by following the steps mentioned here.
- An existing Azure load testing resource and a load test with existing test runs.
Getting started
Preparation
Open the source code in VS Code.
Update the
rerun-existing-test-run.shfile and replace the text placeholders:Placeholder Description <subscriptionId>Azure subscription ID <myRG>Resource group that contains the Azure load testing resource. <myLoadTestResource>Name of the Azure load testing resource. <myLoadTest>Unique name for the load test, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.
Run the sample
Open a bash session and run the following command.
./rerun-existing-test-run.shGo to the Azure portal.
Go to the Azure Load Testing resource to view the test results.