|
Assertions |
Top Previous Next |
|
Purpose An assert statement is a special Boolean condition that represents an assumption about program state at a particular point in test execution. When an assert is encountered, the condition is evaluated. A value of False indicates a program error. In some languages, execution will halt if an assertion evaluates to False. In Rapise, the result is logged to the report with failed status, and execution continues.
Create a Checkpoint To create a checkpoint using an assertion, you will have to manually alter the test script (another way is to use the Verify Object Properties dialog during Recording):
var xx = SeS(?OkButton?).GetX(); // X position of the object
Read about Tester.Assert syntax in the Rapise Objects documentation part.
See Also
|