7. Analyze the Recorded Test

Applies to TestComplete 12.60, last modified on September 17, 2018

After you have finished the recording, TestComplete opens the recorded keyword test for editing and displays test contents in the Keyword Test editor:

Getting Started With TestComplete (Android): The recorded test

The recorded test is similar to the test shown in the image above. Your actual test may differ from this one. For example, it may contain some unnecessary touch actions.

The test contains the commands that correspond to the actions you performed on the Orders application during the recording. We call the test commands operations.

Below the commands there is the Test Visualizer panel that displays images which TestComplete captured for operations during test recording:

Getting Started With TestComplete (Android): Test Visualizer panel

These images illustrate the recorded operations and help you better understand which action the operation performs. TestComplete captures images only for those operations that correspond to user actions (touching, dragging, typing text, and so on).

When you choose an operation in the editor, Test Visualizer automatically highlights the appropriate image so you can easily explore the application state before the operation is executed. For more information on working with images, see the topics in the Test Visualizer section.

The first operation in the test is Select Device. It specifies a mobile device the test should work with. All further test operations will refer to this device.

Getting Started With TestComplete (Android): Selecting a mobile device

The second operation is Run TestedApp. It is used to launch the tested application (in our case, it is the Orders application) from a keyword test. TestComplete automatically records this operation when it launches the application automatically or detects an application launch from the Recording toolbar.

Getting Started With TestComplete (Android): Running the tested application

After that, there are operations that simulate your actions with the application. These operations select an item in the orders list, press the Edit button, change the value of the text field, and press the Ok button.

Getting Started With TestComplete (Android): User actions

For more information on simulating touch events, text input and other user actions from your tests, see Simulating User Actions Over Android Devices.

Finally there is the comparison operation that we added during the test recording:

Getting Started With TestComplete (Android): Property checkpoint

As you can see, TestComplete automatically organizes the operations into groups that correspond to mobile devices and processes you worked with. Grouping makes the test structure easier to understand and also provides some information on the object hierarchy that exists in the application under test.

We recorded user actions on one mobile device and one process. So, we have two group nodes. The “device” node groups processes that were launched on the same device. The “process” node contains all actions that you simulated on the process windows and controls.

Getting Started With TestComplete (Android): Grouping operations

You may notice that the names of the tested process and its windows and controls differ from the names that you can see in the Object Browser panel. For instance, in the Object Browser, the tested process was named Process("smartbear.example.orders") while in the test it is called Process_example_orders; the Edit button was called Button("editButton") while in the test it is called Button_Edit, and so on.

There is a logical reason for this: by default, TestComplete automatically generates and uses custom names for the objects you worked with during the test recording. Generating and assigning custom names is called name mapping. TestComplete maps the names because the default names may be difficult to understand. It may be difficult to determine which window or control corresponds to a name. Using mapped names makes the test easier to understand and more stable. Along with mapping names, TestComplete also stores images of the mapped objects in the Name Mapping repository. This helps you understand which window or control one or another mapped object matches. For more information on mapping names, see Name Mapping.

Prev     Next

See Also

About Tested Application
Keyword Tests
Operation Reference

Highlight search results