Adding JavaScript frameworks to perform new Web ui tests

You can import JavaScript framework platforms that have been updated or created in the Rational Test Workbench Extensibility editor into the Test Workbench in order to perform Web UI tests. The generated files are downloaded in your current workspace. The tests can be recorded and run on desktop browsers and on mobile devices.

About this task

This task is dedicated to testers who want to create tests of web applications using JavaScript frameworks that are not supported by default in Rational Test Workbench Web UI Tester. The JavaScript frameworks imported from the Web Extensibility preferences are created and updated in Rational Test Workbench Extensibility editor on Bluemix. For information on Rational Test Workbench Extensibility, see Getting Started with Rational Test Workbench Extensibility article on Continuous Testing.

Procedure

Enable Test Workbench extensibility:

  1. In the test workbench, select Window > Preferences > Test > Mobile and Web UI > Web Extensibility.
  2. Select Enable Test Workbench extensibility.

Download JavaScript framework platforms from Test Workbench extensibility:

  1. Click Add Platform, give a name to the new platform.
  2. Enter your credentials to access the Test Workbench Extensibility site whose Location is selected.
  3. Select the domain to download in your current workspace. HTML is the default domain. You can select and download several domains in the same platform. Click Finish.
  4. To generate JavaScript files, select the platform checkbox, click the platform name in the list of platforms, and click Apply. The JavaScript files are downloaded in your current workspace. You can select and download one platform only.
  5. Optional: If you want to download the last updates performed in Rational Test Workbench Extensibility for an existing platform, select the active platform name, and click Reload. The local files will be overridden with the last updated files from Web Extensibility.
  6. Optional: To remove a platform, click the platform name in the list and click Remove. If you want to reinitialize a platform, click Restore default. Deselect the Enable Test Workbench extensibility to reinitialize all the platforms. In both cases, the last updated JavaScript files in the current workspace are replaced with the default JavaScript files that are delivered when Rational Test Workbench is installed.

Results

To test the JavaScript frameworks, you can record and run a web test from a desktop browser or on mobile devices. For details, see Creating Web UI tests and Testing web applications on mobile devices. If you get errors such as some objects and actions that would not be recognized in your test, restart Rational Test Workbench, thus the last platform updates will be taken into account. A report is automatically generated when the test is complete, for details, see Evaluating results. You can find an example of a web test using JavaScript framework extensions in Getting Started with Rational Test Workbench Extensibility article on Continuous Testing.

Feedback