- 1. Minimum Recommended Content
- 2. Rationale
- 3. Guidance
- 4. Small Projects
- 5. Resources
- 6. Lessons Learned
Return to 7.18 - Documentation Guidance
1. Minimum Recommended Content
Minimum recommended content for the Software Test Procedures Plan. The Test Procedure Document contains all the detailed information needed to run the test cases identified for the level of testing:
- Detailed description of the planned test environment including
- Identification of hardware, flight components used for test, software needed to run test (operating system, simulators used, hardware test beds, etc.)
- Planned schedule
- Detailed description of each test case defined for the level of testing being performed, It should include for each test:
- Test identifier
- Test grouping (required verification, hazard control verification, etc.)
- Purpose of the test (proof requirement is satisfied, software works properly at boundary limits, handles fault, etc.)
- Identification of software version being tested
- Description of any prerequisite condition
- Description of steps performed to run test
- Input and output parameters
- Expected results, including assumptions and constraints, criteria for evaluating results
- Pass/Fail Criteria for test
- Any other information needed to rerun test
- Recommended: Traceability Matrix, listing set of test cases for level of testing traced to requirement satisfied or aspect of software verified (for example: identification of erroneous inputs)
When testing software, it is important to capture the setup, steps, data, test cases, etc., used to verify requirements, functionality, safety, and other aspects of the software. Test procedures capture that information and more for purposes including but not limited to:
- Verification of defined software functionality.
- Verification that all requirements were tested.
- Verification of test procedure validity, applicability, adequacy, completeness, and accuracy before use.
- Stakeholder understanding and agreement of test methods.
- Repeatability of tests and use of tests in regression testing.
The Software Test Procedures describe the test preparations, test configuration, test cases, and test methods to be used to perform qualification testing of a computer software configuration item (CSCI) or a software system or subsystem. The test procedures also describe the expected test results and include bidirectional traceability to the requirements or a reference to the document containing that trace. See also SWE-065 - Test Plan, Procedures, Reports
3.1 Related Documents
The following documents are useful when developing test procedures:
- Software Requirements Specification ( 5.09 - SRS - Software Requirements Specification)
- Software Data Dictionary (5.07 - SDD - Software Data Dictionary)
- Software Design Description ( 5.13 - SwDD - Software Design Description)
- Interface Design Description (5.02 - IDD - Interface Design Description)
- SW Change Requests_Problem Reports ( 5.01 - CR-PR - Software Change Request - Problem Report)
- Software Architecture (SWE-057 - Software Architecture).
3.2 Writing Test Procedures
When writing test procedures, remember to:
- Include non-functional requirements, including safety, security, performance, etc.
- Ensure all requirements are covered by the full set of test procedures.
- Maintain the bidirectional test-to-requirements trace when modifying test procedures.
- Include test preparations for both software and hardware:
- Noting in the test procedure any dependencies in the order the test procedures must be run.
- Noting or setting the state of the system to that required to run the test procedure.
- Noting or setting the status of data values required to run the test procedure.
- Include tests to:
- Confirm the software does what it is supposed to do.
- Confirm the software does not do what it should not do.
- Confirm the software behaves in an expected manner under adverse or off-nominal conditions.
- Confirm the software can handle faults and failures through mitigation or return to a known safe condition.
- Cover the range of allowable inputs, boundary conditions, false or invalid inputs, load tests, stress tests, interrupt execution and processing, etc.
- Include performance testing.
When writing test procedures, be sure to use these helpful processes and practices:
- Include very clear, understandable, detailed, step-by-step explanations of how to run each test case.
- Use templates and examples from your NASA Center, company, or the NASA Process Asset Library (PAL).
- Include references to any test scripts or other automated procedures, as appropriate.
- Include references to any documents describing the test configuration, if configuration is not captured in the test procedure.
- Include place to document expected results, not just actual results.
- Include a signature block at appropriate points in the procedure so that Software Assurance can sign off on a formal test when it is completed.
- Include provisions to add redlines to the test procedures when they are executed so that configuration management steps are not required to make a minor change to a procedure. The redlines become the official record and can be initialed by Software Assurance to show their concurrence on the changes.
3.3 Reusing Test Procedures
If reusing test procedures, be sure to:
- Check that those procedures adhere to the content and helpful practice guidance above.
- Revise those test procedures to align with testing planned for the current project.
3.4 Pitfalls and Issues
Here are some pitfalls and issues when writing test procedures:
- Do not guess at how the software works. If the requirements are not clear enough to write the test procedures, ask questions of the appropriate project team members.
- Do not assume the tester understands the intricacies of the software design. The test procedures must be easy to follow.
3.5 Best Practices
Some other best practices to consider:
- Identify in each test procedure all requirements being verified by that test procedure.
- Establish bidirectional trace early, and maintain it throughout the test life cycle.
- Sequentially number the steps in the test procedure.
- Tailor the level of detail in each procedure step to allow:
- Clear specification of expected results.
- Meaningful comparison of expected results to actual results.
- Include cleanup steps to leave the system in a known state at the end of the test procedure.
- Use multiple test cases for each requirement, basing the number of test cases on the criticality of the requirement.
- Design test cases to address several related requirements. 140
- Arrange test cases in the order that minimizes the effort required for test setup and that keeps related functions together. 140
- Include a setup procedure or test case to place (or restore) the system in a known state, and call that test case repeatedly rather than repeating those setup steps in each test procedure.
- Peer review test procedures checking for, at a minimum:
- Completeness of test procedure content.
- Understandable and clear steps.
- Requirements coverage.
- Test procedure validity, applicability, completeness, adequacy, and accuracy.
3.6 Additional Guidance
Links to Additional Guidance materials for this subject have been compiled in the Relevant Links table. Click here to see the Additional Guidance in the Resources tab.
4. Small Projects
Test procedures are needed regardless of project size. However, in situations involving small projects, the following relaxations in rigor (but still in compliance with the recommended content) may be appropriate:
- Combine the Test Plan and test procedures into one document.
- The Test Plan is developed before the test procedures, but each test procedure could be added later to the Test Plan as a chapter or appendix.
- Use redlines during review and approval process versus update in configuration management to save time.
- If using a model-based development system, use the model to generate test cases automatically when possible and appropriate to do so.
- Model-generated test cases typically follow a standard approach (range of allowable inputs, boundary conditions, false or invalid inputs, stress tests, etc.).
NASA users find this in the Tools Library in the Software Processes Across NASA (SPAN) site of the Software Engineering Community in NEN.
The list is informational only and does not represent an “approved tool list”, nor does it represent an endorsement of any particular tool. The purpose is to provide examples of tools being used across the Agency and to help projects and centers decide what tools to consider.
5.3 Additional Guidance
Additional guidance related to this requirement may be found in the following materials in this Handbook:
5.4 Center Process Asset Libraries
SPAN - Software Processes Across NASA
SPAN contains links to Center managed Process Asset Libraries. Consult these Process Asset Libraries (PALs) for Center-specific guidance including processes, forms, checklists, training, and templates related to Software Development. See SPAN in the Software Engineering Community of NEN. Available to NASA only. https://nen.nasa.gov/web/software/wiki 197
See the following link(s) in SPAN for process assets from contributing Centers (NASA Only).
5.5 Associated Activities
This topic is associated with the following Life Cycle Activities:
6. Lessons Learned
6.1 NASA Lessons Learned
- Probable Scenario for Mars Polar Lander Mission Loss (1998) (Importance of including known hardware characteristics). Lesson Number 0938 529: "1. Project test policy and procedures should specify actions to be taken when a failure occurs during test. When tests are aborted, or known to have had flawed procedures, they must be rerun after the test deficiencies are corrected. When test article hardware or software is changed, the test should be rerun unless there is a clear rationale for omitting the rerun. 2. All known hardware operational characteristics, including transients and spurious signals, must be reflected in the software requirements documents and verified by test."
6.2 Other Lessons Learned
No other Lessons Learned have currently been identified for this requirement.