Testing / Apache JMeter Interview questions
Why do you need to correlate dynamic values like session tokens?
Many applications generate a new, unique value - a session ID, a CSRF token, a view-state parameter - on the server side for each individual session or request, and that exact value must be included correctly in subsequent requests for the server to accept them as valid.
If a test plan hardcodes a value copied from one recorded session, the test will work for exactly that one specific session and then fail for every other virtual user, since each of them receives a different, unique server-generated value that the hardcoded one doesn't match.
Correlation solves this by capturing the actual value each specific thread receives, at the moment it's returned, and substituting it into that same thread's subsequent requests - keeping each virtual user's simulated session internally consistent with the real, unique values the server actually issued to it.
More Related questions...
