3.5.4 Starting AUT's with the autrun command

The autrun command can be used as an alternative to starting your AUT via Jubula (i.e. with an AUT configuration 3.5.3). It can only be used if your AUT can be started by an executable file (e.g. .bat, .exe, .cmd, .sh etc.) and if it is written in Java 1.5 or above, and you are using a Java Standard Edition JRE.

\includegraphics[height=2cm]{danger} The autrun command cannot be used for HTML or pure SWT AUT's .

The command allows you to start your AUT independently of Jubula , on a machine where the AUT Agent is running. The Jubula ITE , when connected to this AUT Agent will then recognize the running AUT as a testable application.

To use the autrun command:

  1. Ensure that the AUT Agent is installed on the machine where you will be starting the AUT .
  2. Navigate to the server directory in the installation via the command line.
  3. Start your AUT via the command line by entering "autrun.exe" under Windows or "autrun" under Linux then the following parameters:

    Table 3.1: Parameters for autrun command
    Detail Parameter
    -h "-h"
      Gives parameter help
    -w, --workingdir "-w <directory>"
      Enter the working directory for the AUT
    -a, --autagenthost "-a <hostname>"
      Enter the hostname for the AUT Agent
    -p, --autagentport "-p <port number>"
      Enter the port number for the AUT Agent
    -swing  
      If the AUT is a Swing AUT
    -rcp  
      If the AUT is an RCP AUT
    -swt  
      If the AUT is an SWT AUT
    -k, --kblayout "-k <en_US>"
      Enter the keyboard layout for SWT/RCP AUT's
    -i, --autid "-i <ID>"
      Enter the ID to give to this AUT
    -e, --exec "-e <AUT.exe>"
      Enter the executable file for the AUT
    -g, --generatenames (optional) "-g <true/false>"
      For RCP AUT's , enter whether
      to generate technical names. 3.5.2


\includegraphics[height=2cm]{lightbulb} If your AUT is an RCP AUT , use "-data'<WORKSPACE>'" after the executable file to specify the workspace the AUT should use.


Subsections

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