Is it possible to load test a specific API call?

Megan Bores 45 Reputation points
2023-08-25T14:52:09.69+00:00

The requirements for the number of simultaneous users we need to support is very small, enough that I know normal load testing would pass, but we have one specific API call that takes in a large number of inputs, performs a high number of calculations, then returns an even larger amount of data. It's by far the most intensive call in the app, and I want to test this specific call with real data to make sure the app can handle so many concurrent calculations.

Is there a way to load test one specific API call with real inputs?

Note: I am new to load testing and have only been working with Azure for a couple of months.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,755 questions
Azure Load Testing
Azure Load Testing
An Azure service that enables developers and testers to generate insights on how to improve the performance, scalability, and capacity usage of their application
58 questions
0 comments No comments
{count} votes

Accepted answer
  1. brtrach-MSFT 16,271 Reputation points Microsoft Employee
    2023-08-25T23:19:25.49+00:00

    @Megan Bores My below answer assumes that you are using Azure Load Testing, which is a service within Azure. If you are trying to run load testing of a web app, please let us know as the answer is different.

    Yes, it is possible to load test a specific API call with real inputs using Azure Load Testing. You can create a JMeter script that includes the specific API call you want to test, and then use Azure Load Testing to run the script with real data.

    To create a JMeter script, you can use the JMeter GUI or write the script manually. Once you have the script, you can upload it to Azure Load Testing and configure the test parameters, such as the number of virtual users and the duration of the test.

    To use real data in your test, you can use CSV data sets in your JMeter script. CSV data sets allow you to use external data sources, such as CSV files, to provide input data to your test.

    Here's an overview of the steps you can follow to load test a specific API call with real inputs using Azure Load Testing:

    1. Create a JMeter script that includes the specific API call you want to test and uses CSV data sets to provide real input data.
    2. Upload the JMeter script to Azure Load Testing.
    3. Configure the test parameters, such as the number of virtual users and the duration of the test.
    4. Start the test and monitor the results.
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.