The autrun command can be used as an alternative to starting your AUT from the ITE . (i.e. with an AUT configuration 3.7.1). It can only be used if your AUT is written in Java 1.5 or above, and you are using a Java Standard Edition JRE.
![\includegraphics[height=2cm]{danger}](img1.jpg) |
The autrun command cannot be used for HTML or pure SWT AUT's . |
The command allows you to start your AUT independently, on a machine where the AUT Agent is running. The ITE , when connected to this AUT Agent will then recognize the running AUT as a testable application.
To use the autrun command:
- Ensure that the AUT Agent is installed on the machine where you will be starting the AUT .
- Navigate to the server directory in the installation via the command line.
- 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.6 |
|
![\includegraphics[height=2cm]{lightbulb}](img2.jpg) |
If your AUT is an RCP AUT , use "-data'<WORKSPACE>'" after the executable file to specify the workspace the AUT should use. |
Copyright BREDEX GmbH 2013. Made available under the Eclipse Public License v1.0.