Running a Windows test

To verify that a Windows application works as designed, you must run the recorded Windows test. You can choose to run the Windows test either on the local computer or on a remote computer.

Before you begin

You must have completed the following tasks:
  • Recorded a Windows test.
  • Ensured that the Scale and layout in the display settings of the system match with the settings used to create the test.
    Note: The zoom level must always be 100%.
  • Specified your preference for capturing the screen during the playback from Windows > Preferences > UI Test Playback > Report tab, if necessary.

About this task

When you want to run the Windows test on the local computer, you can directly run the Windows test. However, when you want to run on a remote computer, you must first specify the details of a remote computer before you play back the Windows test.

Important: You must not lock the computer screen or minimize the application while you run the Windows test. Otherwise, the playback is interrupted.
Restriction: Although the interactions with some controls within a Microsoft Add-In window (which are not hyperlinks, such as buttons, or inputs) on an embedded browser page are recorded, these actions do not show in the playback of the recorded script.

To workaround this missing action, you must update the test case to ensure that there is a test step to click on the embedded browser prior to the test steps interacting with the controls contained within the Add-in application window.

Some of these Add-In embedded browsers can have multiple containers and you can determine the correct container by using a trial and error method.

You can try the different available containers by highlighting this test step and clicking on the different containers available in the SmartShot View, and then right-click and choose Use this element as the step target. You can playback the test to check if the interactions are highlighted correctly. If not, you can repeat with a different container until the playback displays the interactions.

Note: HCL OneTest UI can handle a long scroll action effectively during the playback if the property IsScrollItemPatternAvailable of the element is set to True in the application under test.

Procedure

  1. Perform the following steps based on your choice to run the test:
    • For the local computer, double-click the test, which you want to run, in the Test Navigator view.
    • For a remote computer, perform the following steps:
      1. Go to Windows > Preferences > Test Execution > UI Test Playback > Mobile Device tab.
      2. Select the Host check box.
      3. Specify the following details:
        • The IP address of the remote computer in the Host field.
        • Port number of the UI Test Agent that is running on the remote computer in the Port field.
      4. Double-click the test, which you want to run, in the Test Navigator view.
  2. Click Run Test in the test editor.

    The test recorded on the Windows application is played back.

Results

You have run the Windows test successfully. After the playback is completed, a unified report is generated for the Windows test.