RemoveAPITest Method

Supported in versions 23.4 and later.

Description

Removes a call to an external API test from the current test.

Syntax

Visual Basic
Public Function RemoveAPITest( _
   ByVal Name As String, _
)

Parameters

Name

The name of the external API test called from the current test.

Remarks

This method is valid only for GUI tests.

Example

Removing a call to an external API test

Copy code
Set qtApp = CreateObject("QuickTest.Application") ' Create the application object
qtApp.Launch
qtApp.Visible = True

qtApp.Test.AddExistingAPITest "C:\Users\wxdgo\Documents\UFT One\APITest1", 2

MsgBox qtApp.Test.APITests.Count

MsgBox "start removing"
qtApp.Test.RemoveAPITest "APITest1"
MsgBox "stop removing"

MsgBox qtApp.Test.APITests.Count

See Also