Artifacts > Test Artifact Set > {More Test Artifacts} > Test Implementation > Test Script
Artifact:
|
Test Script |
The step-by-step instructions that realize a test, enabling its execution. Test Scripts may take the form of either documented textual instructions that are executed manually or computer readable instructions that enable automated test execution. |
UML Representation: | There is no UML representation for this artifact. |
Role: | Tester |
Optionality/ Occurrence: | Define as many Test Scripts as needed to provide the appropriate amount of testing. |
Templates: | |
Examples: | |
Reports: | |
More Information: | |
Input to Activities: | Output from Activities: |
The purpose of the Test Script is to provide the implementation of a subset of required tests in an efficient and effective manner.
Each Test Script should consider various aspects including the following:
There are no UML representations for these properties.
Property Name |
Brief Description |
Name | An unique name used to identify this Test Script. |
Description | A short description of the contents of the Test Script, typically giving some high-level indication of complexity and scope. |
Purpose | An explanation of what this test script represents and why it is important. |
Dependent Test and Evaluation Items | Some form of traceability or dependency mapping to specific elements such as individual Requirements that need to be referenced. |
Preconditions | The starting state that must be achieved prior to the Test Script being executed. |
Instructions | Either the step-by-step instructions for executing the manual test, or the machine readable instructions that, when executed, stimulate the software in a similar manner to the actions that would be undertaken by the appropriate Actor, human or otherwise. |
Observation Points | One or more locations in the Test Script instructions where some aspect of the system state will be observed, and usually compared with an expected result. |
Control Points | One or more locations in the Test Script instructions where some condition or event in the system may occur and needs to be considered in regard to determining the next instruction to be followed. |
Log Points | One or more locations in the Test Script instructions where some aspect of the executing test script state is recorded for the purpose of future reference. |
Postconditions | The resulting state that the system must be left in after the Test Script has been executed. |
The initial Test Scripts can be created as soon as there are some software components against which to implement the tests. The Test Scripts are modified and extended throughout the remainder of the lifecycle, during the course of each test cycle.
The Tester role is primarily responsible for this artifact. Those responsibilities include:
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 the above. 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.
Rational Unified Process |