Occurs during execution of conditional and iterator operations to check whether the test engine should execute child operations.
Declaration
| Data | [in] | Required | Object | |
| Result | Boolean |
Description
Loop and conditional keyword-test operations have one or more child operations that can be executed in a loop or according to the operation’s condition. Operation developers use the CanExecuteBody event handler to control whether the test engine should execute child operations. If the CanExecuteBody event handler returns True, the test engine executes child operations. If the event handler returns False, the test engine does not execute child operations.
Parameters
The event has one parameter:
Data
Return Value
True if the test engine should execute child operations, False otherwise.
Remarks
-
For conditional operations, the
CanExecuteBodyevent is triggered after theOnExecuteevent, that is, the sequence of events at run time is as follows:OnExecuteCanExecuteBodyRun child operations…
-
For loop operations, the
CanExecuteBodyevent is triggered at the beginning of each iteration, before theOnIterateevent, that is, the sequence of events at run time is as follows:OnExecute(triggered only once, before the first iteration)CanExecuteBody(on each iteration)Run child operations…
OnIterate
See Also
Events Reference
OnIterate Event
OnExecute Event
Creating Keyword Test Operations
