Setting Up Common Startup and Ending Test Conditions

As with any set of recorded test scripts, it is necessary to always start and terminate at a common point. This ensures that the AUT is in the same state as it was when the initial recording took place. An example would be where the AUT is open and maximized and there are no leftover open child windows or leftover data values from previous manual or automated testing. Without this return to home state, the tests are not repeatable. Therefore, you must always clean up your AUT prior to stating the automated test scripts. Of course there are situations where you will rely on leftover data or conditions that are present (persistent applications) because you are testing for them. You will also ...

Get Just Enough Software Test Automation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.