Expression checkpoints verify if a value returned by an expression is True. The checkpoint fails if the expression evaluates to False.
1. Select the script line above where to add the statement.
2. Choose Script > Add Statement.
The Add Statement dialog box opens.
3. Select Checkpoint Expression in the Checkpoint category.
4. The Application/version field is automatically set with the context. This information is used to populate the Window and Control fields on the Add Statement dialog box with values from the application repository.
If QA Wizard Pro cannot identify the context, None is selected. This usually occurs when you add statements to a utility script that is only called by other scripts because the context is set in the script that calls it. If an application/version is required, select it from the list.
5. Enter the Expression to evaluate. You can also use a variable or a function that returns a value.
6. Expand the Advanced options to indicate what happens if the checkpoint fails.
7. Enter an optional Comment, such as the purpose of the statement.
8. Click OK to add the statement to the script.