Instrument Method

Applies to TestComplete 14.10, last modified on June 5, 2019

Description

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

Declaration

AndroidTestedAppObj.Instrument()

AndroidTestedAppObj An expression, variable or parameter that specifies a reference to an AndroidTestedApp 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. Otherwise, False.

Remarks

You can use the following properties to parametrize application instrumentation:

  • The BackupOriginalAPK property specifies whether TestComplete should back up the original file.

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

  • The UseCustomCertificate property specifies whether TestComplete will use a custom or the debug certificate.

    • The KeystorePath property specifies the path to the keystore file.

    • The KeystorePassword property specifies the password used to access the keystore file.

    • The KeyAlias property specifies the alias of the key from the keystore file that is used to instrument the application with a custom certificate.

    • The KeyPassword property specifies the password used to access the key.

Example

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

See Also

AndroidTestedApp Object
Instrumented Property
About Tested Android Applications
Instrumenting Android Applications From Scripts

Highlight search results