Home > database >  I am trying to assert if two strings of a response are same or not using response assertion in jmete
I am trying to assert if two strings of a response are same or not using response assertion in jmete

Time:02-25

In response assertion I have given field to test as text response and pattern matching as contains

Pattern to test is ${bookmark_ALL}${value}=${value}${other_bookmark_ALL}

I have taken those bookmark values using json extractor given match -1 for it as well, both bookmark values are in string format

CodePudding user response:

If you want to compare 2 enter image description here

You can check JMeter Variables values using Debug Sampler

Also contains mode assumes regular expression, most probably you were looking for substring

More information: How to Use JMeter Assertions in Three Easy Steps

  • Related