# Package org.apache.jmeter.assertions

Assertions

See: Description

- Interface Summary
  Interface | Description
  --- | ---
  Assertion | An Assertion checks a SampleResult to determine whether or not it is successful.

- Class Summary
  Class | Description
  --- | ---
  AssertionResult | Implements Response Assertion checking.
  BeanShellAssertion | An Assertion which understands BeanShell
  BSFAssertion |
  BSFAssertionBeanInfo |
  CompareAssertion |
  CompareAssertionBeanInfo |
  CompareAssertionResult |
  DurationAssertion | Checks if an Sample is sampled within a specified time-frame.
  HTMLAssertion | Assertion to validate the response of a Sample with Tidy.
  JSONPathAssertion | This is main class for JSONPath Assertion which verifies assertion on previous sample result using JSON path expression
  JSR223Assertion |
  JSR223AssertionBeanInfo |
  LogErrorHandler | `ErrorHandler` implementation that logs
  MD5HexAssertion | MD5HexAssertion class creates an MD5 checksum from the response and matches it with the MD5 hex provided.
  ResponseAssertion | Test element to handle Response Assertions.
  SizeAssertion | Checks if the results of a Sample matches a particular size.
  SMIMEAssertionTestElement |
  SubstitutionElement |
  XMLAssertion | Checks if the result is a well-formed XML content using `XMLReader`
  XMLSchemaAssertion | XMLSchemaAssertion.java Validate response against an XML Schema author
  XPath2Assertion | Checks if the result is a well-formed XML content and whether it matches an XPath
  XPathAssertion | Checks if the result is a well-formed XML content and whether it matches an XPath

## Package org.apache.jmeter.assertions Description

## Assertions

### Methods to be implemented

getResult(SampleResult)

#### Calling sequence

When the test plan is prepared for running, one instance of the class is created for each occurrence of an assertion in each thread.

Assertions are called from the same thread as the sampler

Copyright © 1998-2021 Apache Software Foundation. All Rights Reserved.