Share via

Read input data from a CSV file in Azure Load Testing

In this sample, you read a list of urls from a CSV file and then call a Dummy sampler to simulate a web request for each URL. This sample contains a sample JMeter test script and a CSV file.

The test script contains 1 thread group, which runs infinitely. The CSV Data Set Config element is configured to stop the current thread when it reaches the end of the CSV file. As a result, the load test will iterate once over all records in the CSV file. Alternately, you can set the Recycle on EOF property on the CSV Data Set Config element to continue looping over the file until the end of the test.

The thread group contains a Dummy sampler that outputs the variables that correspond with the fields in the CSV file. You can update the test script to remove or disable the dummy sampler with an HTTP request.

Prerequisites

Run this sample

  1. Follow these steps to read data from a CSV file with Azure Load Testing.

  2. Run the load test.