AddNewAction Method
Description
Creates a new action with the specified script content and adds call to it from the test.
Syntax
Visual Basic |
---|
Public Function AddNewAction( _
ByVal As String, _
ByVal As String, _
ByVal As String, _
ByVal As Boolean, _
ByVal As qtActionPosition _
) As Action
|
Parameters
- Name
- The name of the new action.
- Description
- The textual description of the action.
- ScriptContent
- A single string containing the VBScript content of the action script.
- Reusable
- Indicates whether the action is set as a reusable action.
- ActionPosition
Value | Description |
---|
qtAtBegining | The beginning of the test or parent action. |
qtAtEnd | The end of the test or parent action. |
Indicates whether to add the call to the new action as the first or last step in the test.
Remarks
- If the script contains syntax or other errors, the AddNewAction step fails.
- Using this method, you can add the new action only to the beginning or end of the test.
- You can move the action to another location only by opening the test in the OpenText Functional Testing application and modifying its location manually.
Example
See Also