Data Parameterization in k6
Implement data parameterization in k6 scripts to use external data sources for test inputs.
Dynamic Data in k6 Tests
When performance testing, you rarely want every virtual user (VU) to do exactly the same thing with the exact same data. Real users behave differently!
Data parameterization is the technique of using external data sources to feed dynamic inputs into your test scripts.
Why Parameterize Test Data?
Imagine testing a login page. If all VUs try to log in with "user1" and "pass1", you're not testing unique user scenarios. This can lead to:
- Unrealistic load patterns
- Caching issues
- Errors from duplicate operations
Parameterization helps simulate diverse, realistic user behavior.
All lessons in this course
- Virtual User Scenarios (VUs)
- Data Parameterization in k6
- Cloud Execution with k6
- Custom Metrics and Trends in k6