Asserts that the value of the element identified by a given expression is of a specific type.

Parameters

Name Type Required? Description Default Value
Expression Expression Yes Path to the element whose type is to be examined; for example, `payload.productId`.
Type Selection list Yes Select one of the following values:
  • integer: Checks if the element is an integer value.
  • float: Checks if the element is a decimal value.
  • url: Checks if the element is a well-formatted URL.
  • boolean: Checks if the element is a boolean value.
  • phone: Checks if the element is a valid phone number format.
  • email: checks if the element is a valid email format.
  • map: Checks if the element is a map type.
  • array: Checks if the element is an array.
Mode Selection list No Select one of the following values:
  • all: If the path expression matches multiple elements in the payload then they must all match the assertion.
  • one: Only one of the matching elements in the payload needs to match the assertion.
All
Level Selection list No Select error or warning. Specifies whether, if the assertion fails, it should be considered an ‘error’ or just a ‘warning.’ A warning does not trigger alerts, such as email or text messages. Error
Modifier Selection list No Select not to negate the assertion; the assertion is considered verified if it does not pass. None
Execute if item exists Selection list No Select true or false. If true, the assertion is evaluated only if the element exists. This is useful when the element does not always exist. False
Stop test if fails Selection list No Select true or false. If true, the test is immediately stopped if the assertion fails. False
Assertion comment String No An optional comment for information.