JMeter – MD5Hex Assertion

JMeter - MD5Hex Assertion

In JMeter, MD5Hex Assertion is used to validate the MD5 hash value of the response data. To get more information on MD5 hash click here.

How to add ‘MD5Hex Assertion’?

You can follow the below steps:

  1. Select the ‘Sampler’ element whose response has MD5Hex value and which needs to be validated
  2. Right-click on the sampler element
  3. Hover the cursor on ‘Add’
  4. Hover the cursor on ‘Assertions
  5. Click ‘MD5Hex Assertion’
JMeter - MD5Hex Assertion
Figure 01: JMeter – MD5Hex Assertion

What are the input fields of the ‘MD5Hex Assertion’ element?

‘MD5Hex Assertion’ has the following input fields:

  • Name: To provide the name of the assertion.
  • Comments: To provide arbitrary comments (if any)
  • MD5Hex to Assert: Write the 32 digits MD5 hash value in ‘MD5Hex’ field which needs to be expected in the response. The value is not case-sensitive.  

Leave a Reply

Your email address will not be published. Required fields are marked *