Create data as a load on J-Meter
If you want a specific answer you need to ask more specific question.
The most common parameterization options are:
If you need to ingest data from external data sources:
- CSV Data Set Config allows reading CSV files into JMeter Variables so each virtual user on each iteration reads next line from the CSV file
- __CSVRead() function does more or less the same however it can be declared/used in the runtime so you can have dynamic filename/path and you decide when to proceed to next column/row
- JDBC Request sampler allows reading test data from the database or creating test data in the database
- __StringFromFile() function reads next line from file each time it's being called
- __FileToString() function reads whole file into memory/variable
If you need to generate brand new/random data:
- __threadNum() - number of current thread
- __time() and __timeShift() - current timestamp in various formats plus possibility to generate dates in future or past
- __Random() - generate a random number
- __RandomString() - generate a random string out of provided characters
- __UUID() - generate unique GUID-like structure
- __groovy() - for everything else, it executes arbitrary Groovy code and returns the result
IN addition to great Dmitri's answer I would like to add few cents.
Please take a look to 13-Step Guide to Performance Testing in Kubernetes, especially toStep 12: Automating the Performance Tests
When running performance tests, we need to run these tests for a rangeof workload scenarios (e.g. concurrency levels, heap sizes, messagesizes, etc.). Running the tests manually for each of these scenariosis time-consuming and likely to cause errors. Therefore it isimportant to automate the performance tests prior to executing them.We automate our performance tests using a shell script:start_performance_test.sh.
This script can have an idea for smth similar for you. Also overall the article introduces you Jmeter usage with some examples.