Class SizeAssertion

  • 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 SizeAssertion
    extends AbstractScopedAssertion implements Serializable, Assertion
                        

    Checks if the results of a Sample matches a particular size.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      SizeAssertion()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      AssertionResult getResult(SampleResult response) Returns the result of the Assertion.
      String getAllowedSize() Returns the size in bytes to be asserted.
      void setCompOper(int operator) Set the operator used for the assertion.
      int getCompOper() Returns the operator to be asserted.
      void setAllowedSize(String size) Set the size that shall be asserted.
      void setAllowedSize(long size) Set the size that should be used in the assertion
      void setTestFieldNetworkSize()
      void setTestFieldResponseHeaders()
      void setTestFieldResponseBody()
      void setTestFieldResponseCode()
      void setTestFieldResponseMessage()
      String getTestField()
      boolean isTestFieldNetworkSize()
      boolean isTestFieldResponseHeaders()
      boolean isTestFieldResponseBody()
      boolean isTestFieldResponseCode()
      boolean isTestFieldResponseMessage()
      • 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.AbstractScopedTestElement

        fetchScope, getProps, getSchema, getVariableName, isScopeAll, isScopeChildren, isScopeParent, isScopeVariable, setScopeAll, setScopeChildren, setScopeParent, setScopeVariable
      • 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