RemoveAction Method
Supported in UFT One version 23.4 and later.
Description
Removes a call to a specified action from the current test.
Syntax
Visual Basic |
---|
Public Function RemoveAction( _ ByVal Name As String, _ ) |
Parameters
Name
The name of the action called from the current test.
Remarks
This method is valid only for GUI tests.
Example

Set qtApp = CreateObject("QuickTest.Application") ' Create the application object
qtApp.Launch
qtApp.Visible = True
qtApp.Open "C:\Users\_ft_auto\Documents\UFT One\GUITestWithOwnAction"
MsgBox qtApp.Test.Actions.Count
MsgBox "start removing"
qtApp.Test.RemoveAction("Action2")
MsgBox "stop removing"
MsgBox qtApp.Test.Actions.Count
See Also