Class CompareAssertion

java.lang.Object
org.apache.jmeter.testelement.AbstractTestElement
org.apache.jmeter.assertions.CompareAssertion
All Implemented Interfaces:
Serializable, Cloneable, Assertion, LoopIterationListener, Searchable, TestBean, org.apache.jmeter.testelement.TestElement

public class CompareAssertion extends AbstractTestElement implements Assertion, TestBean, Serializable, LoopIterationListener
See Also:
  • Constructor Details

    • CompareAssertion

      public CompareAssertion()
  • 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
      Parameters:
      response - the SampleResult containing information about the Sample (duration, success, etc)
      Returns:
      the AssertionResult containing the information about whether the assertion passed or failed.
    • iterationStart

      public void iterationStart(LoopIterationEvent iterEvent)
      Description copied from interface: LoopIterationListener
      Called when a loop iteration is about to start.
      Specified by:
      iterationStart in interface LoopIterationListener
      Parameters:
      iterEvent - the event
    • isCompareContent

      public boolean isCompareContent()
      Returns:
      Returns the compareContent.
    • setCompareContent

      public void setCompareContent(boolean compareContent)
      Parameters:
      compareContent - The compareContent to set.
    • getCompareTime

      public long getCompareTime()
      Returns:
      Returns the compareTime.
    • setCompareTime

      public void setCompareTime(long compareTime)
      Parameters:
      compareTime - The compareTime to set.
    • getStringsToSkip

      public Collection<SubstitutionElement> getStringsToSkip()
      Returns:
      Returns the stringsToSkip.
    • setStringsToSkip

      public void setStringsToSkip(Collection<SubstitutionElement> stringsToSkip)
      Parameters:
      stringsToSkip - The stringsToSkip to set.