Writing Effective Test Scripts and Test Data

The following list of do's for writing effective automated test scripts is taken from the workbook of the advanced scriptwriting seminar offered by CSST Technologies, Inc., and Archer Group.

Test Scriptwriting Do's

Use framework-based script design.

Implement data-driven controls.

Develop and use scriptwriting guidelines.

Limit script sizes.

Break scripts down by functionality.

Document scripts well.

Organize test scripts into related groups.

Use shell scripts.

Include test parameters in data files such as *.ini files, settings files, and configuration files rather than as constants embedded into the test script.

Prompt users for input specifics with preset defaults.

Create error traps and provide ...

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.