You can test Java™ applets within a browser (Firefox, Internet
Explorer). Java™ applets are not mapped as nested
within HTML but are recorded as top-level objects. In the test object
map, applets appear at the top level.
If the object cannot be found by "The Java™ Test
Domain", the HTML Applet Test Object (HTML AppletProxy) is used as
the fall-back test object, which provides only coordinate-based recording.
Requirements for testing
applets within a browser
- The Sun Java™ Plug-in is required for running
and testing applets.
- To use Java™ applets with Firefox, Java™ 2 Standard Edition Runtime version 1.4
or greater is required, and the associated Java™ Plug-in
must be installed.
- Internet Explorer
- The Sun Java™ Plug-in is not required to run applets, but it is required for testing applets with
Rational® Functional Tester.
If the Java™
Plug-in is not installed, the Microsoft® JVM is used to run applets, and Rational® Functional Tester is not
designed to enable the Microsoft® JVM.
- If you want to use a Java™ Plugin
older than 1.4 with Internet Explorer, you must turn off Applet Support:
- From the Windows® Start menu,
run regedit.
- Open HKEY_LOCAL_MACHINE\Software\Rational Software\Rational Test\8
.
- In the right pane, right-click and click .
- Set the name of the new string to
Applet Support
.
- Double-click the newly created string.
- In the Value data field of the Edit String
dialog box, type 0.
- Restart your computer.
- Rational® Functional Tester
- For Internet Explorer, use Java™ Plug-in
version 1.4 greater. Earlier versions of the Java™ Plug-in,
including 1.2.2, and 1.3.1_01 do not work with Rational® Functional Tester.
- You must enable the JVM (JRE) that the Java™ Plug-in is using. When a JavaSoft JRE or JVM is installed, it
may install a Java™ Plug-in also. If so, you must use Rational® Functional Tester to enable
the JVM used by the Java™ Plug-in. For information, see Enabling
Java Environments.
- Rational® Functional Tester uses the most recently installed Java™ Plug-in/JRE. If an unsupported Java™ Plug-in is installed (for example, Version
1.2.2 in Internet Explorer), Rational® Functional Tester stops working with
the browser.
- The Java™ Plug-in uses its default JRE
(the JRE with the same version as the plug-in), unless specified otherwise.
You can change the default JRE in the Java™ Plug-in
control panel application.
- Rational® Functional Tester attempts to locate the most recently installed Java™ Plug-in and enable its default JVM.
- Java™ Applets in HTML
- An applet can be specified in HTML using an APPLET tag, an OBJECT
tag, or an EMBED tag.
- For Internet Explorer, until version 1.3 of the Java™ Plug-in,
the OBJECT tag had to be used to specify the use of the Sun JVM for
applets. In version 1.4 and later, during installation of the Java™ Plug-in, the use of the Java™ Plug-in/JRE
may be selected as the default for Internet Explorer (APPLET tags),
allowing both APPLET and OBJECT tags to be used.
- A Java™ Plug-in HTML Converter is available from
Sun Microsystems to convert APPLET tags to a set of OBJECT and EMBED
tags within the HTML document.
- Make sure Java™ applets are visible during playback. If you resize the browser to a smaller size,
Rational® Functional Tester
does not scroll the applet objects into view during playback.