Package org.apache.jmeter.assertions
Class MD5HexAssertion
-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Cloneable
,org.apache.jmeter.assertions.Assertion
,org.apache.jmeter.gui.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.
-
-
Field Summary
Fields Modifier and Type Field Description public transient JMeterContext
threadContext
public transient String
threadName
public final static TestElement.Companion
Companion
public final static String
NAME
public final static String
GUI_CLASS
public final static String
ENABLED
public final static String
TEST_CLASS
public final static String
COMMENTS
-
Constructor Summary
Constructors Constructor Description MD5HexAssertion()
-
Method Summary
Modifier and Type Method Description AssertionResult
getResult(SampleResult response)
void
setAllowedMD5Hex(String hex)
String
getAllowedMD5Hex()
-
Methods inherited from class org.apache.jmeter.testelement.AbstractTestElement
addTestElement, canRemove, clear, clearTestElementChildren, clone, equals, getComment, getName, getProperty, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsFloat, getPropertyAsInt, getPropertyAsLong, getPropertyAsString, getPropertyOrNull, getSearchableTokens, getThreadContext, getThreadName, hashCode, isEnabled, isRunningVersion, isTemporary, propertyIterator, recoverRunningVersion, removeProperty, setComment, setEnabled, setName, setProperty, setRunningVersion, setTemporary, setThreadContext, setThreadName, traverse
-
Methods inherited from class org.apache.jmeter.testelement.TestElement
get, get, get, get, get, get, get, get, get, getOrCreate, getOrCreate, getOrNull, getOrNull, getOrNull, getProps, getSchema, getString, removed, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getResult
AssertionResult getResult(SampleResult response)
-
setAllowedMD5Hex
void setAllowedMD5Hex(String hex)
-
getAllowedMD5Hex
String getAllowedMD5Hex()
-
-
-
-