Interface Assertion

  • All Implemented Interfaces:

    
    public interface Assertion
    
                        

    An Assertion checks a SampleResult to determine whether or not it is successful. The resulting success status can be obtained from a corresponding Assertion Result. For example, if a web response doesn't contain an expected expression, it would be considered a failure.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract AssertionResult getResult(SampleResult response) Returns the AssertionResult object encapsulating information about the success or failure of the assertion.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getResult

         abstract AssertionResult getResult(SampleResult response)

        Returns the AssertionResult object encapsulating information about the success or failure of the 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.