Product automation scripts

Relevant for: GUI tests and components

The OpenText Functional Testing automation object model is a set of test objects, methods, and properties that represent elements in the OpenText Functional Testing user interface, enabling you to control OpenText Functional Testing from other applications.

Use the automation object model to write Visual Basic scripts that control OpenText Functional Testing to modify configuration and run settings. This is helpful when you need to define the same settings multiple times, or on multiple tests and components, or quickly configure OpenText Functional Testing for a specific environment or application.

OpenText Functional Testing automation object model scope

Most OpenText Functional Testing UI elements and options are supported in the automation object model as follows:

Dialog boxes Most OpenText Functional Testing dialog boxes have a corresponding automation object.
Options in dialog boxes Most options in OpenText Functional Testing dialog boxes have a corresponding object property.
Menu commands and other operations Most OpenText Functional Testing menu commands and other operations have corresponding automation methods.

Design your automation script using the objects, methods, and properties exposed by the OpenText Functional Testing automation object model, along with standard programming elements such as loops and conditional statements.

For more details, see Application Object and the OpenText Functional Testing Automation Object Model Reference .

Back to top

Sample automation scenarios

The following are two common scenarios of where you might use OpenText Functional Testing automation scripts.

Configure your team's testing configuration

Use the automation object model to create a script that opens OpenText Functional Testing with specific configuration settings.

Instruct all your tests to open OpenText Functional Testing using this automation script to ensure that all your entire team works with the same configuration.

Run tests and components

Create a script that performs the following steps to define specific settings and run an OpenText Functional Testing test or component.

  1. Start OpenText Functional Testing.

  2. Load a required add-in.

    You can skip this step if the script will only open existing tests or business components and run them. When opening a test or business component, OpenText Functional Testing dynamically loads its associated add-ins. For details, see Loading add-ins that were not loaded at startup.

  3. Open a test or component.

  4. Configure settings in the:

    • Options dialog box

    • Test Settings or Business Component Settings dialog boxes

    • Record and Run Settings dialog box

  5. Save and run the test or component.

Add a loop to your script to enable you to use the same script on multiple tests and components.

Back to top

See also: