Running a script from the Microsoft Edge browser

Starting from IBM® Rational® Functional Tester 9.1.1, you can play back functional test scripts using the Microsoft Edge browser on computers that are shell-shared with Rational Test Workbench Web UI Tester.

Before you begin

  • Microsoft Edge browser v40.15063.0.0 or later must be installed on your system. To check the version:
    1. Start Microsoft Edge.
    2. Click the More (…) menu.
    3. Select Settings, and then scroll down to the bottom.
  • Rational Test Workbench Web UI Tester 9.1.1 and later and Rational Functional Tester 9.1.1 and later must be shell-shared on the same computer.

    Shell sharing means that both products are installed into the same package group using IBM Installation Manager. When you run one of the products, the user interface and features contributed by the other product are visible.

Procedure

  1. Enable Windows 10 Developer Mode.
    1. Click the Windows Start menu.
    2. Type Settings and then press Enter.
    3. Click Update & Security > For developers > Developer mode. For further details, see https://docs.microsoft.com/en-us/windows/uwp/get-started/enable-your-device-for-development.
  2. Download the Microsoft WebDriver for Edge browser from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver.
  3. Set the environment variable named webdriver.edge.driver with the full path to the installation file named MicrosoftWebDriver.exe.
    1. In the Control Panel, click System > Advanced system settings > Advanced > Environment variables.
    2. In System Variables, click New, and in Variable name, enter webdriver.edge.driver.
    3. In the Variable value field, enter the path to the MicrosoftWebDriver.exe and click OK.

      See https://www.ibm.com/support/knowledgecenter/SSBLQQ_9.1.1/com.ibm.rational.test.lt.rtw.webgui.doc/topics/t_enabling_edge.html.

  4. Use one of the following methods to install the Rational Functional Tester Edge extension:
    • Open the Windows command prompt as Administrator and run the following command: powershell Add-AppxPackage <SDP_DIRECTORY>\FunctionalTester\bin\enabler\FTEdgeExtension.appx OR
    • Open Windows PowerShell as Administrator and run the following command: Add-AppxPackage <SDP_DIRECTORY>\FunctionalTester\bin\enabler\FTEdgeExtension.appx.
  5. Open the ivory.properties file in <SDP_DIRECTORY>\FunctionalTester\bin\ and change the line #rational.test.ft.timeout_pb_event_consumed=1000 to rational.test.ft.timeout_pb_event_consumed=0.
    Note: You must remove # and change 1000 to 0.
  6. Start Rational Functional Tester.
  7. Open Window > Preferences > Functional Test > Playback and select Play back with Rational Test Workbench Web UI Tester.
  8. Click OK.
  9. Start the Edge browser using either startBrowser() or startApp().
    • To use startBrowser(): startBrowser("Edge", "https://www.google.co.in/");
    • To use startApp():
      1. ClickConfigure > Enable Environments for Testing > Web Browsers and click Add.
      2. Browse to C:\Windows\SystemApps\Microsoft.MicrosoftEdge_8wekyb3d8bbwe and click Add.
      3. Add an HTML application and select Edge as the browser in the Configure > Configure Applications for Testing wizard.
  10. Add sleep() of at least 15 seconds after startBrowser() or startApp().

Feedback