Developing Automated Test Scripts
You can either record or program automated test scripts using a test tool's test scripting language. If you don't have an automated test tool, you can record test scripts using the Windows macro recorder function. Regardless of what method you choose, if you follow a few simple test case design rules, your result will be more robust, easier-to-maintain test cases. Adhikari cites four test case design principles that are in use at Charles Schwab. The design engineers are told to do the following (1). We have applied these rules and found them to be effective when developing automated tests/test data.
Design independent test cases.
Design self-contained tests.
Design home-based test cases.
Design nonoverlapping test ...