Reputation: 17
I have two HTTP requests and the output of first one result value should match with the second request output value..if not matched then fail..
i want to do this check in response assertion..
i have done below steps:
a) Using Regular Expression Extractor i have extracted the value from first HTTP request
b) Added Response Assertion for second request and now how to compare that value with the response of second request
How to Use JMeter Assertions in Three Easy Steps
please help.
Upvotes: 0
Views: 1477
Reputation: 168072
Something like:
If "Request 2" response will contain the variable from the Regular Expression Extractor - it will pass, otherwise it will fail.
Replace the ${Variable_From_The_Regular_Expression_Extractor}
with what you have in the "Name of created variable" in the Regular Expression Extractor.
References:
Upvotes: 0