JMeter Beginner Class 24: Correlation with Regular Expression Extractor

Опубликовано: 03 Октябрь 2024
на канале: Testing Tutorialspoint
493
5

Correlation (with Regular Expression Extractor):
------------------------------------------------

What is Correlation?

The process of extracting some value from the response of a step and referred it into the request of other subsequent step is called correlation.

Why is it required?

in a test there may be a need to refer values from earlier steps which cannot be determined prior to test execution as these are generated at runtime.

How to use Regular Expression Extractor

Step 1 : Create a Test Plan where you want to do dynamic referencing in JMeter

Step 2 : Add Regular Expression Extractor in the Step from where response value(s) needs to be extracted

Step 3 : Refer the extracted value (referred by Reference Name) into a subsequent step

Step 4 : Run and validate