Class XMLAssertion

    • Constructor Detail

      • XMLAssertion

        public XMLAssertion()
    • 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.
      • threadStarted

        public void threadStarted()
        Description copied from interface: ThreadListener
        Called for each thread before starting sampling. WARNING: this is called before any Config test elements are processed, so any properties they define will not have been merged in yet.
        Specified by:
        threadStarted in interface ThreadListener
        See Also:
        JMeterThread.threadStarted()