5. Record a Test

Applies to TestComplete 15.49, last modified on March 17, 2023

Do not switch to the TestComplete help during the recording. The recording engine traces and records all user actions, so the recorded test will contain commands that simulate “switching”.
To see the instructions, you can print them before starting the record. Or, if you have two monitors, you can move the TestComplete help system window to the other monitor.

  1. TestComplete will start test recording, switch to the recording mode and show the Recording toolbar on screen:

    Getting Started With TestComplete (Android): Recording Toolbar
  2. Wait until the Mobile Screen window will display the initial window of the application:

    Getting Started With TestComplete (Android): Android Orders Application

    Click the image to enlarge it.

    If the application won’t start, launch it manually.

  3. In the Mobile Screen window, click Samuel Clemens’s order and then click the Edit button:

    Getting Started With TestComplete (Android): Switching the Orders application to the edit mode

    Click the image to enlarge it.

    This will switch the Orders application to the edit mode.

    Getting Started With TestComplete (Android): The Edit Order Panel

    Click the image to enlarge it.

  4. Change the customer name in the order details.

    Clear the Samuel Clemens text, type Mark Twain, and press Enter. Use your desktop keyboard to input text in the Mobile Screen window.

  5. Scroll down the Edit Order page and click OK. This will save the order changes and return back to the orders list.

    Getting Started With TestComplete (Android): Modified Orders List

    Click the image to enlarge it.

  6. Insert a comparison command into our test. It will verify that the application customer list contains the modified name - Mark Twain.

    We call comparison commands checkpoints. TestComplete offers various types of checkpoints to verify various types of data (see Checkpoints). One of the most frequently used checkpoints is the Property checkpoint. You use it to check data of application controls. We will use this checkpoint in our tutorial to verify the text in the Customer Name edit box

    • Click Add Check on the Recording toolbar:

      Getting Started With TestComplete (Android): Creating a Checkpoint

      TestComplete will open the Checkpoint wizard. It will guide you through the process of checkpoint creation.

    • On the first page of the wizard, click Text or property.

      The Checkpoint Wizard
    • Click the target glyph () with the left mouse button and keep the button pressed.

      Wait until the wizard minimizes, and then drag the icon to the orders list of the Orders application. While you are dragging, TestComplete will highlight the controls and windows under the mouse cursor with the red frame.

      Release the mouse button when the target glyph is over the order made by Mark Twain, and when the entire item is highlighted with the red frame:

      Getting Started With TestComplete (Android): Selecting order

      Click the image to enlarge it.

    • After you release the mouse button, TestComplete will restore the wizard and show the name of the selected object in the Object box and the image of the object below it:

      The Property Checkpoint Wizard

      Click Next to continue.

    • The next page of the wizard shows a list of properties suggested for checking:

      Getting Started With TestComplete (Android): The list of suggested properties

      This list includes the properties provided by TestComplete and the properties defined by the tested application. To view all the available properties, you can click More Properties.

    • In the table, make sure the Text property is selected. Make sure that the Equals (case-sensitive) condition is selected in the Condition column:

      Getting Started With TestComplete (Android): The Property Checkpoint Wizard
    • Click Finish to complete the checkpoint creation. TestComplete will append the checkpoint command to the recorded test.

  7. Click Stop on the Recording toolbar to stop recording. TestComplete will process the recorded test commands and save them to the keyword test.

Prev     Next

See Also

Testing Android Applications - Tutorial
Recording Automated Tests
About Property Checkpoints

Highlight search results