Recording versus Programming Test Scripts

Recorded test scripts have their limitations and frequently must be edited before they work properly. Zambelich stated the disadvantages of recorded test scripts very clearly (10):

  1. The scripts resulting from this method contain hard-coded values, which must change if anything at all changes in the application.

  2. The costs associated with maintaining such scripts are astronomical and unacceptable.

  3. These scripts are not reliable, even if the application has not changed, and they often fail on replay (pop-up windows, messages, and other things can happen that did not happen when the test was recorded).

  4. If the tester makes an error entering data, etc., the test must be rerecorded.

  5. If the application changes, the ...

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.