RemoveAPITest Method
Supported in versions 23.4 and later.
Description
Removes a call to an external API test from the current action.
Syntax
Visual Basic |
---|
Public Function RemoveAPITest( _ ByVal APITestName As String, _ ) |
Parameters
APITestName
The name of the external API test called from the current action.
Remarks
This method is valid only for GUI tests.
Example
Dim qtApp
Dim test1
Set qtApp = CreateObject("QuickTest.Application")
qtApp.Launch
qtApp.Visible = true
test1 = "C:\allMethods\AOM\_Resources\Tests\GUIWithAPITest1"
qtApp.Open test1
'Find the first action in the test and remove the API test from the first action
qtApp.Test.Actions(1).RemoveAPITest "APITest"
'Find the Action1 action and remove the API test from Action1
qtApp.Test.Actions("Action1").RemoveAPITest "APITest"
qtApp.Quit
See Also