Automation Guide
Action-based testing language
TestArchitect Automation Classes
Engine class methods
The requested page is not available for selected version.
DivertToDefinedAction
Syntax
integer DivertToDefinedAction(string filename)
Description
Start with executing an Action Definition contained in a file, let it return to the current test
Parameters
filename
Name of the file where the definition is stored.
Return Value
Return 1 if the call is successful; otherwise, 0.If unsuccessful, the diagnostic functions can be used to get more details..
Notes
- This function is normally part of Interpret. However, it can be used to explicitly run an action that is implemented with an Action Definition. Obtain the filename parameter by using ActionScriptFind.
Example
Execute the enter customer action (the parameters should be in the current action line, use NewActionLine and AddArgument to synthesize one if necessary):
DivertToDefinedAction(ActionScriptFind("enter customer"))