Enabling Google Chrome for Web UI testing

Before you can record a Web UI test of a web application that is already running in the Chrome browser, you must first install the HCL OneTest UI Web UI browser extension for Chrome. Also, if you want to record a Web UI test in the private mode of Chrome, you must install and configure the browser extension.

About this task

You can use the extension that is available with your HCL OneTest UI installation or from the Chrome Web Store.

Procedure

  1. Select from an option to install the Google Chrome extension for Web UI testing:
    • To install the extension from the installation package, go to Step 2.
    • To install the extension from the Chrome Web Store, go to Step 3.
  2. Perform the following steps to install the use the Google Chrome extension for Web UI testing that is packaged with the product:
    1. Open the Google Chrome browser.
    2. Click More Tools > Extensions to open the Chrome browser extension page.
    3. Select the Developer Mode option.
    4. Select the Load unpacked extension option.
    5. Go to the WebUIExtension folder within the default shared directory of HCL OneTest UI.
      For example, on a Windows computer, the directory could be as follows:
      C:\Program Files\HCL\HCLOneTest\plugins\com.ibm.rational.test.rtw.webgui.browextension.chrome_version_id\ChromeExtension
    6. Select the WebUIExtension folder, and then click OK.
  3. Perform the following steps to install the use the Google Chrome extension for Web UI testing from the Chrome Web Store:
    1. Open the Google Chrome browser.
    2. Enter chrome.google.com/webstore/category/extensions in the URL field, and then press Enter or click Chrome web store.
    3. Enter OneTest UI in the Search field.
    4. Press Enter.

      The available extensions are listed.

    5. Select the HCL OneTest UI - Web UI extension, and then click Add to Chrome.

      The Confirm New Extension dialog is displayed.

    6. Click Add extension.
  4. Perform the following steps if you want to record tests in the private mode of a browser:
    Note: If you want to record any test in the private mode, you must configure the test by selecting the private mode option for the browser in the HCL OneTest UI UI.
    1. Check and ensure that you have added the HCL OneTest UI - Web UI extension to the default profile of the browser (C:\Users\<username>\AppData\Local\Google\Chrome\User Data\Default).
    2. Enable only the HCL OneTest UI - Web UI extension and disable or remove the other HCL OneTest UI extension, if installed.
    3. Go to Extensions > Manage Extension in the browser toolbar.
    4. Select the following options that are listed for the Web UI extension:
      • Allow in Incognito
      • Allow access to file URLs
    5. Close all open browsers. You can also check and end any browser processes that might be running in the background.

What to do next

Verify that the Google Chrome extension for Web UI testing is installed by performing the following actions:
  • Open the Chrome browser, and then open the Chrome browser extension page by clicking Customize and control Google Chrome > More Tools > Extensions. You can find that the extension is installed.

Record a test using an existing instance of the Chrome browser. See Recording a Web UI test by using a running browser instance for details.