Creating Test Commands From Visualizer Frames

Applies to TestComplete 15.69, last modified on November 13, 2024
Information in this topic is relevant only for the those Visualizer frames that TestComplete captures for desktop, web and black-box Android applications (see below).

Test Visualizer images can include data of the UI objects they contain. This lets you add test operations for these objects without launching or accessing your tested application.

Requirements

  • Test Visualizer lets you add operations to keyword tests only. In scripted tests, record the needed operations or write the script code manually.

  • The Visualizer frame must include object data, that is, it must be created in the Capture tested object properties mode.

    This mode works for desktop, web and black-box Android applications. For iOS and Android Open applications, TestComplete captures only images, but not object data.

  • Web testing: Your TestComplete project must use the Tree model.

Adding Test Operations for Desktop and Web Applications

  • Open your keyword test.

  • Select a Visualizer image that contains the target object.

    Note: TestComplete will add the operation after the one that corresponds to the selected Visualizer image. However, you can move the created operation to another position in the test.
  • Right-click the current Visualizer image and select Insert On-Screen Action from the context menu. This will open the image in the Visualizer Frame window.

  • Click the object in the image. TestComplete will show the available actions for this object.

  • Select the action to apply to the object and click Next.

  • (Optional.) Specify the operation parameters, if any.

  • Click Finish.

  • If needed, drag the created operation to another position in the test.

Note: The new operation uses a copy of the current Visualizer image. If this image does not visually match the operation, you can update it.

Adding Operations to Image-Based Tests (For Android Applications Only)

If the object’s image is already in the Image Repository, simply add the Image Touch operation your keyword test.

If the Image Repository does not have the object's image yet:

  • Open your keyword test.

  • Select a Visualizer image that contains the target object.

  • Right-click the current Visualizer image and select Insert Image Touch from the context menu. This will open the image in the Visualizer Frame window.

  • Select the object or the device screen area to touch. TestComplete will add the Image Touch operation after the current position in the test.

  • If needed, drag the created Image Touch operation to another position in the test.

See Also

About Test Visualizer
About Test Visualizer
About Test Visualizer Panel
Visualizer Frame Window

Highlight search results