Skip to main content
Version: 1.0.1

Assert True

A keyword used to validate a test scenario by checking a logical expression (operator) and displaying an actual result message when it evaluates to false.

Platforms​

Web, Android, iOS, Windows, JavaSwing, Api, JDBC

Attributes​

AttributeData Source** Recommendation**
message: The message displaying the actual result when the logical expression evaluates to falseThe system recommends ValueDefault is String
Operator: The logical expression evaluated by the keyword, returning true/false--

Use Cases​

Used to verify the correctness of a single or multiple logical expressions and conclude with a message.

If the logical 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 statement combined with an operator.