Class DurationAssertion

    • Field Detail

      • DURATION_KEY

        public static final String DURATION_KEY
        Key for storing assertion-informations in the jmx-file.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DurationAssertion

        public DurationAssertion()
    • Method Detail

      • getResult

        public AssertionResult getResult​(SampleResult response)
        Returns the result of the Assertion. Here it checks wether the Sample took to long to be considered successful. If so an AssertionResult containing a FailureMessage will be returned. Otherwise the returned AssertionResult will reflect the success of the Sample.
        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.