Commonly used assertions in Jmeter can be Response Assertion
If you need to decode a string in the response message, what should you do to assert the decoded value?
Take a closer look, you can use the following two components
Regular Expression Extractor: intercept the desired string
BeanShell Assertion: Operate on strings and then determine whether the values are consistent
As above, if the value of the intercepted response is 000, then 000 is equal to the expected value of 000, and the assertion is passed;
If the value of the intercepted response is 000, then 000! =111, the assertion fails;
If it is a little more complicated, it is also possible to encrypt or decrypt the value of the response;
For example, this assertion is also passed, and we also know by the way that case is ignored.
Modify String exp = "c6f057b86584942e415435ffb1fa93d4d"; slightly (add the d at the end), and find that the assertion fails