Before you can start an agent applet, the required classes must be installed on your test system. Refer to Installing Agent Classes on Test Systems for the location and list of classes required to start the agent applet.
Because some browsers use built-in VMs to run applets, you must use a compatible applet or object tag. Refer to your VM documentation for a description of the tags required to run applets on your browser.
The following example is compatible with the Netscape browser VM. It calls the agent applet and sets the parameters of the applet GUI.
Agent parameters and run options can also be set in the applet tag. Refer to Setting Parameters in the Applet Tag below.
Example agent applet tag:
<APPLET
/code=
applet-class-path/archive=
JavaTest-classes/width=
display-width/height=
display-height/>
Applets have not been enabled on your browser. You must enable applets on you browser to display the applet GUI used to run the agent.</APPLET>
The following table describes the tags used in the applet:
Tag | Description |
---|---|
code
|
The agent applet class installed on your test system.
Example:
|
archive
|
The URL of the classes required to run the agent applet on your test system. The classes are either located in the javatest.jar file or in a directory containing the minimum set of classes required to run the agent applet.
In the following example, the classes are contained in the javatest.jar file located in the same directory as the HTML page. Refer to Installing Agent Classes on a Test System for a description of how the agent applet classes can be installed. Example:
|
width
|
Sets the width of the GUI. An initial value of 600 is suggested; however, adjust the value based on your screen size and resolution.
Example:
|
height
|
Sets the height of the applet. An initial value of 600 is suggested; however, you may need to adjust the value based on your screen size and resolution.
Example:
|
Parameters can also be set in the applet tag. Parameters in the applet tag are included as <param name/value
>
pair tags:
Example agent applet tag:
<APPLET
code=
applet-class-patharchive=
JavaTest-classeswidth=
display-widthheight=
display-height>
...
<param name=
parameter-namevalue=
parameter-value>
Applets have not been enabled on your browser. You must enable applets on you browser to display the applet GUI used to run the agent.</APPLET>
Two types of parameters can be included in the applet tag:
Specifying Active Agent Options - parameter settings required to run an active agent.
Specifying Passive Agent Options - parameter settings required to run a passive agent.
Specifying Serial Agent Options - parameter settings required to run a serial agent.