Keith is a member of the customer-facing BlazeMeter engineering team and has specialised in test and release automation for over 10 years.

Become a JMeter and Continuous Testing Pro

Start Learning

Test Your Website Performance NOW! |

arrowPlease enter a URL with http(s)
Oct 14 2020

How to Add Test Data to Your BlazeMeter Functional Tests

Test data is the information that is added to the test for examining the different test scenarios and verifying the system’s abilities. Testers, developers and QA engineers create and add this type of data to performance tests, security tests, white box tests, and especially to functional tests. Adding test data to functional tests enables data driven testing, which provides wider test coverage and maintainability. In this blog post, I will show how test data can be added to BlazeMeter functional tests.


To start out, you can create functional tests with BlazeMeter’s scriptless test automation tool. This feature provides testers with a user friendly editor for the creation of functional tests. Learn how these tests can be easily created.


Now let’s look at an example.


Step 1: Mapping the Required Data from Your App


To find the required data, look at your system and map out the data requirements. In this example we are using a sample application that contains a registration page. For users, the page requires data such as names, date of births and SSN. Therefore, corresponding test data is required to validate all of the various combinations. 




The scriptless test has already been created to populate all of the fields in the registration form. Now, we are going to replace the static data in the test to utilise test data from the BlazeMeter platform.


Step 2: Selecting the Test Data in BlazeMeter


Let’s see how we can use test data within a test. The data options can be selected by:


1. Clicking the .csv drop down in the top right hand corner of the test.


2. Selecting the option “Create Data”.


A tabular screen will be presented and any data required can be entered.



In this example, I have added columns to match each variable required to complete the sample application user registration form. Each column heading will automatically become a variable that can be used in the test. Each row of data can be used as a separate test iteration. This allows the same test to be used to test multiple data combinations.



The “Browse Files” option can be used to select an existing CSV file and upload the data to the platform. 


Step 3: Updating the Test with Your Test Data


Now that we have our test data defined, we can update the BlazeMeter test to use the data. We will replace the static data with a variable that will be dynamically populated.


1. To assign a variable use the format ${VariableName}. Each column heading is automatically assigned as a variable.


2. Edit the steps in the test that correspond to the relevant form locations to replace the fixed data with a variable.



Tests that have been configured with test data variables will automatically create a separate test instance for each row of test data.


Then, a single test will be created within BlazeMeter.


Step 4: Managing Data Iterations


Each data iteration result will be displayed in the summary tab. The test iteration behaviour can be controlled further using the “Data iteration settings” to allow the test to either utilise all of the test data or to restrict the amount of data used for a test.




Step 5: Examining Test Results


In this sample test the results for each iteration are accessible by clicking on the test results icon corresponding to each of the iterations.



Step 6: Reuse the Data


Test data can be made available to multiple tests by utilising the BlazeMeter shared folders. These folders can be used for all tests within a workspace and allow for a central location to manage test data. 


COMING SOON! BlazeMeter will shortly be releasing the next phase of data generation. This feature will allow the tester to define the test data required and the ability to generate data on demand.


Try BlazeMeter for free today and start running data-driven functional tests.


arrowPlease enter a URL with http(s)

Interested in writing for our Blog?Send us a pitch!