Documentation

Looking for something in particular?

Automation V3: Assert Test Step

This test step compares the supplied values, failing the test if unsuccessful.  

Drag the Assert test step from the Test Palette into your test case.

Then, update the parameters as follows and save the test case.

  • Result: The actual value
  • Target: The value that is expected
  • Operator: See comparison type for the supported comparison types (EqualTo, LessThan, etc.)
  • Failure Message: The message that should be logged if the comparison fails
  • Case Sensitive: Whether the comparison should be case-sensitive or not.  If false then abc = ABC will assert successfully
  • Keep trailing zeros: Whether the comparison keeps trailing zeroes when comparing numbers. By default, trailing zeroes are trimmed, e.g., 1.0 becomes 1
  • Nulls are Greater: Whether unpopulated (or null) values should be treated as greater than non-null values.  If true, then ‘a < null’ will assert successfully
  • Match Multi-line: The Multiline flag for Regular Expressions
  • Match dot all: The DotAll flag for Regular Expressions

Examples:

Actual ValueComparisonExpected ValueRelevant CheckboxResult
25Greater Than24True – Success
1Equals1.0Keep trailing zeros = falseTrue – Success
abcContainsAbcdTrue – Success
ABCDEqualsabcdCase Sensitive = falseTrue – Success
AbcdMatchesbcTrue – Success

Feedback

Was this article helpful for you?
Documentation library

Trying to raise a case with our support team?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top