Class MD5HexAssertion

All Implemented Interfaces:
Serializable, Cloneable, Assertion, Searchable, org.apache.jmeter.testelement.TestElement

public class MD5HexAssertion extends AbstractTestElement implements Serializable, Assertion
MD5HexAssertion class creates an MD5 checksum from the response and matches it with the MD5 hex provided.

The assertion will fail when the expected hex is different from the one calculated from the response OR when the expected hex is left empty.

See Also:
  • Constructor Details

    • MD5HexAssertion

      public MD5HexAssertion()
  • Method Details

    • getResult

      public AssertionResult getResult(SampleResult response)
      Description copied from interface: Assertion
      Returns the AssertionResult object encapsulating information about the success or failure of the assertion.
      Specified by:
      getResult in interface Assertion
      response - the SampleResult containing information about the Sample (duration, success, etc)
      the AssertionResult containing the information about whether the assertion passed or failed.
    • setAllowedMD5Hex

      public void setAllowedMD5Hex(String hex)
    • getAllowedMD5Hex

      public String getAllowedMD5Hex()