What is correlation in a performance script, and how is it different from parameterization?
Answer
Correlation captures a dynamic value produced by the system, such as a session token, CSRF value or generated ID, and reuses it in later requests from the same flow. Parameterization supplies varying input data that the test controls, such as users, products or search terms. In JMeter, correlation commonly uses response extractors or post-processors, while parameterization commonly uses variables and CSV Data Set Config.
Strong answer includes
- dynamic server-produced value versus test-controlled input data
- gives session/token and CSV examples
- validates that extracted values belong to the correct user or iteration
Practical example
Read username/password pairs from CSV: parameterization. Extract the access token returned by login and send it in the next API request: correlation.