Skip to main content
Version: 1.0.1

Assert Equals

A keyword used to terminate the test scenario with a result message when the comparison expression of the parameter value evaluates to false.

Platforms​

FTP, SSH, iOS, Android

Attributes​

AttributeData SourceRecommendation
message: The message displaying the actual result when the comparison expression evaluates to falseThe system recommends ValueDefault is String
expect: The expected value of the test scenario at the current stepThe system recommends ValueDefault is String
actual: The actual value, usually the return value of keywords like Get text, Get attribute…The system recommends VariableDefault is String

Use Cases​

Used when a quick check of a parameter value is needed, and the test scenario should terminate with a message.

If the comparison expression evaluates to false, the actual result description will be the value of the message attribute, and the actual result of the test scenario will be fail

Can be replaced with an If.. else connect with operator "" = = """

Example​

After executing a money transfer, verify that the displayed information matches the beneficiary details and the entered amount.