2.8.2. Sample execution

The following Code shows a simple example how the embedded Agent can be used. The class org.eclipse.jubula.autagent.Embedded is responsible for the AutAgents lifecycle. The agent can be started with Embedded.INSTANCE.agent() or with an integer parameter for the port number. Only one Agent could be started and must be stopped with shutdown() before any other agent could be run. If a Embedded Agent is already started, you can get the AUTAgent instance again with Embedded.INSTANCE.agent() .



Copyright BREDEX GmbH 2015. Made available under the Eclipse Public License v1.0.