After the script launches the application, add the code to close the application.
1 |
Capture and save an image of the window buttons. Be sure to set the image click point on the close button using the Select click spot toolbar button. |
Alternately, close the application using the Alt+f or x hot keys. This eliminates the need to capture the window Close button, but does not confirm that the window closed.
Once this script is running in CitraTest®, create a new FTR script, and insert a CitraTest script using the FTR Insert Wizard.
1 |
Create a new FTR script. |
When a script fails, the application is left in an unknown state. To ensure a consistent launch point and avoid other problems such as multiple versions of the application running, Restore Desktop is advisable in many situations. CitraTest® and FTR each have the ability to restore the desktop to the state prior to script execution, and both should be set to ensure a consistent script startup state.
1 |
2 |
Select the Restore desktop to the script start time state check box. This closes any windows that were open when the script launched. |
3 |
To enable FTR’s restore desktop feature, set the Restore Desktop option to True in the CitraTest instruction properties. |
In such cases, the Restore Desktop property in the FTR instruction should be left at False. Logic should be added in CitraTest script to the AbortScript function and/or at the beginning of each script to ensure the application is shuts down properly. For example, at the beginning of the Citrix script, use the ImageExists function to check for the pre-existence of the Citrix client, and if it exists click the Start > Shut Down in the Citrix client window and execute a clean Log Off.
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center