5.1.3.2. Prepare for AUT Termination
Prev | 5.1.3. Actions for AUT lifecycle (restarting) | Next

#### 5.1.3.2. Prepare for AUT Termination

- Use this action together with an action to close your AUT and action to synchronize the termination and re-start of the AUT .

- Using these actions, you can close your AUT using e.g.
  File --> Exit
  and have it automatically restarted.

| Using the Restart option in Eclipse AUT's is not supported.

- Use this action shortly before an action in your test that will cause the AUT to shutdown. It must not be directly before the action to close the AUT .

| The shutdown method you choose must run through the JVM shutdown hooks to properly terminate the AUT. Do not use the restart action to shut your AUT down.

- Using this action ensures that the step to terminate the AUT is correctly recognized and that it can be successfully re-started using the synchronize termination and re-start action. This is achieved by delaying the time between opting to close the AUT and actually closing it so that the correct communication can take place. The default delay time is set to 2000 milliseconds, and can be altered using either an environment variable (see User Manual) or as a JVM property in the AUT configuration (see User Manual) TEST_AUT_KEEP_ALIVE_DELAY. Any test step delay specified in your Test Suite is added to this delay.

| This action is currently supported on the Swing and RCP toolkits. Neither toolkit supports the terminating of AUT's using the press any key actions to press e.g. »ALT+F4«. External key combinations can be used to terminate the AUT using e.g. »ALT+F4« on RCP AUT's, but not Swing AUT's.

This action has no parameters.