1. Initialzation commands.
2. Window restoration commands (optional).
3. User action and test case commands.
4. Closing commands.
View the original article here