Before you start creating test scripts against your application, you need to enable the environment for testing. Enabling the environment for testing ensures that controls used within environments are accessible by Rational Functional Tester.

Clicking Configure > Enable Environments for Testing from the Rational Functional Tester menu opens a dialog box where you can add web browsers, Java environments, and the Eclipse or SAP GUI platform to the list, and then enable them for testing.

Enabling Web Browsers

The Web Browsers enabler must be run before you can use Rational Functional Tester to test an HTML application. Depending on the platform where Rational Functional Tester is installed, enabler behaves differently. On Windows® systems, the enablers look in the registry to discover any installed browser, and on UNIX®, the enabler scans hard drive(s) for any installed browsers.

Rational Functional Tester automatically enables Internet Explorer if it is present on the system. If you have different browsers such as Mozilla or Netscape 6 or 7, you must add and enable them manually via the Enable Environments Wizard shown in below figure.

Enabling Web Browsers

You should use Test button to validate if the web browser was properly enabled. Clicking the Test button invokes the Brower Enablement Diagnostic Tool. You need to run a diagnostic test to validate proper enablement of the web browser. If the web browser-enablement test result displays a success status, you have properly enabled web browser. If there are issues, the web browser-enablement test result shows a state failure with an explanation of the failure. Click the Problem and Solution tab for instructions about how to fix the problem.

Also, note that the first time you run Rational Functional Tester, it automatically enables the JVM of your browser’s Java plug-in so that HTML recording works properly. If you install a different JVM, you must rerun the enabler to enable it.

Enabling Java Environments

The Java Environment tab is used to enable Java environments and to add or configure Java environments, as shown in Figure below. Java enabler must be run before you can use Rational Functional Tester to test Java applications. The enabler scans hard drive(s) looking for Java environments. It enables the Rational Functional Tester to “see” your Java environments by adding files to the directory where your Java Runtime Environments (JRE) are located.

Enabling Java environments

You should always perform a test when you add a new Java environment. Click the Test button, which invokes the JRE Tester. If the test runs successfully, JRE Tester displays the JRE version, vendor, and a message that JRE successfully enabled. If there is an issue, you need to rectify the issue before recording a test.

Rational Functional Tester is shipped with a JRE that is automatically enabled during installation. It is called IBM Rational SDP JRE. After the name of the Java environments, the enabler indicates in parentheses whether that environment is currently enabled.

Enabling Eclipse Platforms

The Eclipse Platforms tab is used to enable Eclipse or WebSphere WorkBench based platforms. Rational Functional Tester supports testing applications based on Eclipse 2.0 and 3.0, as shown in below Figure.

Enabling Eclipse platforms

The Eclipse enabler must be run before you can use Rational Functional Tester to test Eclipse or WebSphere WorkBench based platforms, or applications hosted in one of these platforms. The enabler scans your hard drive(s) looking for any installed versions of Eclipse or WebSphere WorkBench.

If your Eclipse shell is not enabled, the Recording Monitor is blank when you try to record against it. For this reason, leave the Recording Monitor in view while recording. If you see this symptom, you need to run the enabler.

Enabling SAP GUI

To use Rational Functional Tester to test SAP applications, you need to enable the SAP GUI client. You can enable the SAP GUI client in the SAP GUI tab only for the Windows operating system. The SAP GUI tab is not present in Linux. Also, you need to ensure that you have administrator privileges so that you can use the SAP GUI enabler.

If you do not have the supported version of SAP GUI client in the Windows operating system, the SAP GUI tab is disabled.