This is the fourth post in a series of five summarizing a podcast series devoted to CSA. You can find the complete series here.
Testing is a fundamental and crucial part of computer system validation (CSV). Computer software assurance (CSA), the FDA's new methodology for performing CSV, won't change that.
The hope, however, is that CSA will streamline testing by encouraging us to rely less on scripted testing and pre-approved protocols and more on existing test/vendor records and automated tools in our testing efforts. In other words, CSA is designed to help us test smarter, not harder.
The Root Cause of Testing Issues
The foundation of good software, or software that performs as intended, is good requirements. The same is true with testing. If you want to write good tests, you must start with good requirements. Inferior or incorrect requirements are often the root cause of a testing problem.
User requirements define the intended use of the system. Functional requirements outline how the system must perform to meet those user requirements. Finally, design requirements are the elements and components that must be in the system to develop the functional requirements that will, in turn, meet the user requirements. Because they're interconnected, user requirements will have a domino effect on the overall safety and efficacy of the system. The effect can be negative or positive—it all depends on the quality of the user requirements.
8 Characteristics of a Good Requirement
Gathering and writing good requirements is a core competency for anyone tasked with writing test steps and test scripts. A good user requirement should have the following characteristics:
- Unambiguous
- Testable
- Clear
- Correct
- Understandable
- Feasible
- Independent
- Atomic
Risk-based Testing and Least Burdensome Approach
Once you are satisfied with your requirements, it's tempting to dive right into testing. But before you can move forward, you must consider risk and the least burdensome approach.
Testing, at its core, is really about risk. This idea is not new. The FDA promoted a risk-based approach in its final guidance document General Principles of Software Validation, published in 2002. A few years later, the International Society for Pharmaceutical Engineering (ISPE) introduced GAMP®5: A Risk-Based Approach to Compliant GxP Computerized Systems.
Unfortunately, over-testing and exhaustively documenting every step of the testing process (even for low-risk systems or features) "just to be sure" has become the standard approach to CSV testing. Maximizing testing efforts, regardless of risk, burdens resources and can even compromise patient safety. Testers often neglect—or entirely miss—high-risk issues when attempting to "test everything."
The CSA approach prioritizes risk-based critical thinking over excessive testing. It encourages a least burdensome approach to documentation and the use of less formal (and far less time-consuming) unscripted testing methods and automated technologies for digital validation.
Types of Testing
Now that you're ready for testing, what approaches are at your disposal?
- Scripted Testing: Scripted testing requires significant preparation and follows a prescribed step-by-step method with expected results and pass/fail outcomes. It is based on pre-approved protocols (IQ, OQ and PQ). This is the traditional testing method associated with the CSV methodology. CSA advises us to reserve scripted testing for high-risk features and systems.
- Unscripted Testing: Unscripted testing requires no preparation, documentation or test scripts. It's less time-consuming than traditional testing. We should reserve unscripted testing for low- to medium-risk features and systems that do not directly impact product or patient safety. Ad hoc, automated and exploratory testing are examples of unscripted testing methods that I explore in detail in my podcast, which you can access by clicking on the link below.
Key Takeaway
The purpose of CSA is not to eliminate CSV or scripted testing. Its purpose is to remind us to use critical thinking combined with a risk-based approach to determine which system features are crucial to product and patient safety and focus our most rigorous testing efforts there.
Note: This blog post summarizes the fourth episode of a 5-part podcast series devoted to CSA. Next time, I'll examine documentation, the fourth and final level of the CSA methodology.
Want to dive deeper into testing and CSA? Click on orange button below to listen to the full podcast.
Looking for More? Here's Your Guide to Computer Software Assurance.
Is CSA the new CSV? Not exactly. Here's the rest of your comprehensive guide to computer software assurance, the FDA's new framework for validating software systems.