The JavaTest harness and its agents act as a distributed program that can run tests on one or more test platforms. As a distributed program, they must be synchronized before you can run tests.
The requirements for synchronizing an agent with the JavaTest harness differ based upon whether the agent is an Active agent or a Passive agent.
The JavaTest harness must be started and the agent pool must be listening for agents before an active agent is started.
When active agents are started they must contact and register with the JavaTest harness. If the JavaTest agent pool is not listening for the agent, the agent returns an error message and waits until its timeout period ends before trying to recontact the JavaTest harness.
Passive agents must be started before the JavaTest harness.
Passive agents listen for requests from the JavaTest harness to run tests. If the passive agent is not started before the JavaTest harness issues a request, the harness waits for an available agent until its timeout period ends.
If the timeout period ends before an agent is available, the JavaTest harness reports an error for the test.
Related topics: