Playing back a Windows test

To verify that a Windows application works as designed, you must play back the recorded Windows test. You can choose to play back 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.
  • 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 play back the Windows test on the local computer, you can directly play back the Windows test. However, when you want to play back 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 play back 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: Rational® Functional Tester 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 play back the test:
    • For the local computer, double-click the test, which you want to play back, 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 Appium server host checkbox.
      3. Specify the following details:
        • The IP address of the remote computer in the Appium server host field.
        • Host number of the Appium server that is running on the remote computer in the Port field.
      4. Double-click the test, which you want to play back, 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 played back the Windows test successfully. After the play back is completed, a unified report is generated for the Windows test.