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
| Attribute | Data Source | Recommendation |
|---|---|---|
| message: The message displaying the actual result when the comparison expression evaluates to false | The system recommends Value | Default is String |
| expect: The expected value of the test scenario at the current step | The system recommends Value | Default is String |
| actual: The actual value, usually the return value of keywords like Get text, Get attribute… | The system recommends Variable | Default 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.