Running functional tests for HTML applications by using the Web UI engine

When you want to run functional tests for HTML applications in browsers without enabling the Java environments and browsers, you can do so by using the Web UI engine.

About this task

To run functional tests for the HTML applications in web browsers, you must first enable the Web UI engine for the functional test from the Preferences menu.

You can also configure HCL OneTest UI to select a specific browser profile that you configured to add the home page, extensions, and settings for the browser to run the tests. You can select the profile in Preferences by going to Window > Preferences > Test > Test Execution > UI Test Playback > Browser. For more information, see the related information.

If you select a specific profile for the browser, the browser displays the details that are set for the profile before the actual Application Under Test (AUT) is loaded.

If you do not select a specific profile for the browser, the test runs on the browser with a temporary profile, which is not configured with any predefined settings.

Procedure

  1. Enable the Web UI extension from the Functional Test perspective by performing the following steps:
    1. Go to Windows> Preferences> Functional Test> Playback menu.

      The Playback settings page is displayed.

    2. Select the following checkboxes:
      • Play back with Web UI Extension
      • Play back with Web UI action
    3. Click Apply.
  2. Run the functional test.
    Notes:
    • When you run the functional test for any HTML application in the Mozilla Firefox, Microsoft Edge, or Google Chrome browser by using the Web UI engine, and if there is a browser and driver incompatibility, HCL OneTest UI automatically downloads the appropriate driver to play back tests successfully.
    • You can clear the cache and history of the Mozilla Firefox, Microsoft Edge, and Google Chrome browsers by selecting certain checkboxes in the Preferences menu. You can select the Clear cache and Clear history checkboxes by going to Window > Preferences > Test > Test Execution > UI Test Playback > Desktop.

Results

You have run functional tests for HTML applications by using the Web UI engine.