Java applets in HTML pages
You can test Java™ applets
within a browser (Firefox, Netscape, Internet Explorer, or Mozilla). 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
- Firefox 1.5, 2.0
- 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.
- Netscape 7.01, 7.1, and 7.2
- The Sun Java Plug-in is required for running and testing applets.
- To use Java Applets with Netscape, Java 2 Standard Edition Runtime version
1.4 or later is required, and the associated Java Plug-in must be installed.
- Mozilla 1.5, 1.6, and 1.7
- The Sun Java Plug-in is required for running and testing applets.
- To use Java Applets with Mozilla, 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 Functional Tester. If the Java Plug-in
is not installed, the Microsoft® JVM is used to run applets,
and 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.
- 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 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 Functional
Tester to enable the JVM used by the Java Plug-in. For information, see Enabling Java Environments.
- 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), 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.
- 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.
- The link (http://java.sun.com/j2se/1.4/docs/guide/plugin/developer_guide/using_tags.html)
"Using OBJECT, EMBED, and APPLET Tags in Java Plug-in" explains how these tags are
used.
- According to Netscape and Sun documentation, the EMBED tag is supported
for backward compatibility to Navigator 3 or 4, and the OBJECT and EMBED tags
do not work in Netscape 7.01 with the Java Plug-in. Therefore, you must use the
APPLET tag for Netscape 7.01.
- 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, Functional Tester does not scroll the applet
objects into view during playback.