GitHubContribute in GitHub: Edit online

Assert Compares

Asserts that two elements are equivalent in some way.


Name Type Required? Description Default value
Expression 1 Expression Yes Path to the first element for comparison; for example, payload1.productId.
Expression 2 Expression Yes Path to the second element for comparison; for example, payload2.productId.
Mode Selection list Yes Select one of the following values:
  • text: compare the text of the two elements as plain text.
  • values: compare the two elements regardless of their text layout.
  • structure: compare only the structure of the two elements.
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
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.