JMeter – Compare Assertion
Use the Compare Assertion function to compare the specified text or regular expression string with the content of the response in JMeter. I searched for a practical application for the statement of the equation, but couldn’t find one. I recently learned that it is not recommended to use comparison validation during load testing due to high CPU and memory usage.
The compare commit is typically used for debugging or functional testing. However, I’m still not sure of the exact purpose of the comparison claim.
Add more information about the equation statement or its practical applications in the comments section.
How is ‘Compare Assertion’ added?
You can take the actions listed below:
- Decide which “Sampler” element should have its response compared.
- Do right-click on the node.
- Place your cursor over ‘Add’.
- Place your pointer over ‘Assertions’.
- ‘Compare Assertion‘ should be clicked.
What do the ‘Compare Assertion’ input fields look like?
The input fields for “Compare Assertion” are as follows:
Name: To state what the assertion’s name is.
Commentary: Please add any arbitrary comments.
Compare Content: Choose whether to tell JMeter to carry out a content comparison. The comparison will be made if True is set.
Compare Time: To compare the reaction time, the input value is used.
Comparative filters The string of the required regular expression that must be compared.