You can enhance the power and flexibility of a visual test by including test logic that expands the basic capability of a
recorded visual test. By inserting test logic, you can dynamically alter the execution flow of the visual test. For example,
you can insert test logic into your visual test that evaluates a user-defined condition, and then performs one of the following
actions based on the result of the condition:
- Runs or repeats a sequence of test steps in a visual test
- Runs a visual test from a visual test
- Sends a pass/fail message and flag regarding the playback status of a test step to the result of a visual test.
To accomplish these actions,
Silk Test Workbench provides several different types of test logic, which are categorized as follows:
- Decision Logic: Logic that evaluates a user-defined condition and then runs a sequence of test steps depending on the return value of the
condition.
- Repetition Logic: Logic that repeats a sequence of test steps a set number or times or while a user-defined condition is true.
- Verification Logic: Logic that evaluates a user-defined condition and then sends a pass/fail message and flag to the result of a visual test.
- Error Handling Logic: Logic that performs a user-defined action in the event of an error during playback.
Silk Test Workbench provides the following tools to insert test logic into your visual test.