Enabling the Eclipse p2- based applications for functional testing

If the application-under-test is based on p2-based Eclipse, you must enable the Eclipse platform for testing using the Eclipse Software Updates feature.

Before you begin

HCL OneTest UI automatically enables the environments for functional testing. As a result, you can directly record functional test scripts without enabling components manually. The automatic enablement takes place under certain conditions and has limitations. For more information about the conditions and limitations, see Automatically enabled environment for functional testing.

Enabling applications based on Eclipse version 3.4 and later

You can enable applications that are based on Eclipse version 3.4 and later using the Eclipse Software Updates feature.

Procedure

  1. Open the application under test.
  2. Click Help > Software Updates.
  3. Click the Available Software tab.
  4. Click Add Site.
  5. Click Local.
  6. Browse to the EclipseEnabler directory under the FunctionalTest folder in the product installation location.
  7. Click OK.

Enabling applications based on versions prior to Eclipse version 3.4

You can enable applications that are based on Eclipse versions prior version 3.4 for testing using the Eclipse Software Updates feature.

Procedure

  1. Open the application under test.
  2. Click Help > Software Updates > Find and Install.
  3. Select Search for new features to install in the Feature Updates dialog box and click Next.
  4. Click New Local Site in the Update sites to visit page.
  5. Select the EclipseEnabler directory found under the FunctionalTest folder in the product installation location. Click OK.
  6. Specify the name for the local site in the Name field and click OK. The site name is listed in the Update sites to visit page.
  7. Select the site from the list and click Finish. The specified directory, along with its sub folders, is listed in the Search Results page.
  8. Select the main directory in the Search Results page and click Next.
  9. In the Feature License page, select I accept the terms in the license agreement and click Next.
  10. Click Finish.

    You can verify that the Eclipse application is enabled for testing by checking that the com.rational.test.ft.enabler.wsw plugin is added to the Plugins directory of the Eclipse application.

    Note: Some Eclipse based RCP applications may not have the Help > Software Updates option. In this case you can copy the com.rational.test.ft.enabler.wsw_7.0 plugin manually from the FunctionalTest\EclipseEnabler\Plugins directory from the product installation location into the Plugins directory of the RCP application. After doing this, restart the RCP application with the -clean option.

What to do next

Configuring applications for testing