verifyTrue()

Purpose

Checks that a condition is true.

Syntax

verifyTrue( [<string>,]<Boolean> )

where:

Description

The corresponding test result is Passed if the verifyTrue() condition is True and Failed if the condition is False.

An optional <string> message can be logged and displayed in the test report.

If an exception is thrown in a verifyTrue() method, an error is logged and the test continues.

Examples

verifyTrue("verify 1 true", true);

verifyTrue("verify 2 false", false);

verifyTrue(true);

verifyTrue(false);

 

Related Topics

assertTrue()