background image
<< Recovery System - The recovery system's flow of control | Recovery System - Specifying new window closing procedures >>
Recovery System - How the recovery system starts the application
<< Recovery System - The recovery system's flow of control | Recovery System - Specifying new window closing procedures >>
292
User's Guide
15 U
NDERSTANDING
THE
R
ECOVERY
S
YSTEM
How the recovery system starts the application
How the recovery system starts the application
To start the non-Web application, the recovery system executes the Invoke
method for the main window of the application. The Invoke method relies on
the sCmdLine constant as recorded for the main window when you create a
test frame. For example, here is how a declaration for the sCmdLine constant
might look for the sample Text Editor application running under Windows:
const sCmdLine = "d:\appdir\texted2.exe"
After it starts the application, the recovery system checks whether the main
window is minimized, and, if it is, uses the Restore method to open the icon
and restore the application to its proper size.
How the recovery system closes windows
As explained in the introduction to this chapter, the built-in recovery system
restores the base state by making sure that the non-Web application is
running, is not minimized, is active, and has no open windows except for the
main window.
DefaultBaseState application state
error?
BaseState method of main window
Application states of testcase
Testcase
DefaultBaseState application state
BaseState method