Work Product Descriptor (Artifact): Test Script
This artifact contains the step-by-step instructions that compose a test, enabling its run. Text scripts can take the form of either documented textual instructions that are manually followed, or computer-readable instructions that enable
automated testing.
Purpose

Test scripts implement a subset of required tests in an efficient and effective manner.

Relationships
Input ToMandatory:
  • None
Optional: External:
  • None
Description
Brief Outline

Each Test Script should consider various aspects of testing, including the following:

  • The basic computer hardware requirements (for example, processors, memory storage, hard-disk storage, input/output, and interface devices)
  • The basic underlying software environment (for example, operating system and basic productivity tools, such as e-mail and a calendar)
  • Additional specialized input/output peripheral hardware (for example, bar-code scanners, receipt printers, cash draws, and sensor devices)
  • The required software for the specialized input/output peripheral hardware (for example, drivers, and interface and gateway software)
  • The minimal set of software tools necessary to facilitate test, evaluation, and diagnostic activities (for example, memory diagnostics, automated test execution, and so on)
  • The required configuration settings of both hardware and software options (for example, video-display resolution, resource allocation, environment variables, and so on)
  • The required pre-existing consumables (for example, populated data sets, receipt printer dockets, and so on)
Properties
Optional
Planned
Illustrations
Templates
Tailoring
Impact of not havingWithout this artifact, it is difficult to ensure that tests are run consistently so that results are repeatable and errors can be recreated. If you do not use a test script, it is more difficult to verify that errors were not caused because of the way tests were run.
Reasons for not needing

This artifact might not be required if the tests are simple or if testing is done on an informal basis. However, for this approach to be successful, testers must track their processes, as they might need to recreate a problem scenario. Alternatively, you can use automatic capture and playback tools to provide a record of testing.

Representation Options

Manual Test Scripts may be documented using some form of text document, spreadsheet, or table, or using a specialized test documentation support tool.

Automated Test Scripts may be created (recorded) or automatically generated using test automation tools, programmed using a programming language, or any combination of these. The Test Scripts may be modified to include programming concepts, such as referencing common function libraries, using variables, loops, and branching to increase the efficiency, effectiveness, and resilience of the scripts.

In certain cases, it will be appropriate to use automated Test Scripts as informal, transient resources, avoiding the effort and cost of maintaining them.

More Information