Instrument Method

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

Use the Instrument method to prepare your application for testing with TestComplete. For more information on instrumenting iOS applications from scripts, see the Instrumenting iOS Applications From Scripts (Legacy) topic.

Declaration

iOSTestedAppObj.Instrument()

iOSTestedAppObj An expression, variable or parameter that specifies a reference to an iOSTestedApp object
Result Boolean

Applies To

The method is applied to the following object:

Result Value

True if the application has been instrumented successfully or has already been instrumented for this TestComplete version, and False otherwise or if the application has been instrumented in Xcode.

Remarks

  • Before calling the Instrument method, you need to assign values to the following properties. These properties specify files that contain information needed to sign the instrumented application:

    For information on getting the file names, see Get Certificate Files (Legacy).

  • You can use the following properties to parameterize the application instrumentation:

    • The BackupOriginalIPA property specifies whether TestComplete should back up the original module.

    • The BackupFileName property specifies the full path to the backup of the original .ipa file.

Example

For an example of using the Instrument method, see the Instrumenting iOS Applications From Scripts topic.

See Also

iOSTestedApp Object
Instrumented Property
About Tested iOS Applications (Legacy)
Instrumenting iOS Applications From Scripts (Legacy)

Highlight search results