You can test Java applets within a browser (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
Netscape 4.7x, 6.2.x, 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.3.0_02 or later is required, and the associated Java Plug-in must be installed.
See Notes on Using Netscape 4.7x to Test HTML and Java Applets for a list of considerations when using Netscape 4.7x to test HTML applications and Java applets, particularly in cross-browser situations.
Mozilla 1.0, 1.4, 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.3.0_02 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.3.1_02 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 New > String Value.
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.3.1_02, and 1.4. 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 (that is, 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.
The EMBED tag was used by Netscape Navigator 3 and 4 to specify the Java Plug-in for Applets. The OBJECT tag is not supported.
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 6.2.x and 7.01 with the Java Plug-in. Therefore, you must use the APPLET tag for Netscape 6.2.x and Netscape 7.01.
To test applets in Netscape 4.7x, you must use the EMBED tag instead of the APPLET tag. EMBED tags do work in Netscape 4.7x with the Java Plug-in.
For Internet Explorer, until version 1.3.1_01a 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.3.1_01a 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.
Terms of use | Feedback
(C) Copyright IBM Corporation 2002, 2004. All Rights Reserved.