Rakesh
Rakesh

Reputation: 17

Jmeter response assertion

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

Answers (1)

Dmitri T
Dmitri T

Reputation: 168072

Something like:

JMeter Response Assertion Contains

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

Related Questions