Specifying Passive Agent Options

Passive agents can be configured and run from the application command-line, the application or applet GUI, or the applet tag. Refer to Starting the Agent for a description of the different features and functions that each provides.

Depending on how you choose to start the agent, you must set the following minimum set of parameters either in the command line, the GUI Parameter pane, or the applet tag:

Mode

Specifies the type of agent. The type of agent that you use determines how the agent communicates with the JavaTest harness and the protocol that is used. A passive agent waits for the JavaTest harness to initiate the connection via TCP/IP.

To specify a passive agent, use the appropriate setting or option from the following table:

Interface Option or Setting
default active
command line -passive
applet tag <param name=mode value=passive>
GUI Parameter Pane Specifies the type of agent

Port

Specifies the port that the passive agent uses to listen for the JavaTest harness. The JavaTest harness and agent must use the same port. If the ports are not the same, the JavaTest harness cannot communicate with the agent. The default value for passive agents is 1908.

To specify a port other than 1908, use the appropriate setting or option from the following table:

Interface Option or Setting
default 1908
command line -passivePort port-number
applet tag <param name=activePort value=port-number>
GUI Parameter Pane Specifies the port that the passive agent uses

Next:

Specifying Additional Options - additional parameters to display help or configure other agent properties.