Systems Analysis, Design Verification, Model Balancing, and Software Testing Guide

Systems Development Lifecycle and Testing Timeline

Systems analysis, design, and testing operate within a phased engineering lifecycle. Within the curriculum framework of the School of Systems and Computing at UNSW, Canberra (taught by Prof Kathryn Kasmarik), the progression through software engineering responsibilities spans specific timeframes and academic leads:

  • Project Initiation: Scheduled for 1 week1\,\text{week}, led by Alireza.
  • Project Management: Scheduled for 3 weeks3\,\text{weeks}, led by Alireza and Josh.
  • Systems Analysis: Scheduled for 3 weeks3\,\text{weeks}, led by Alireza, Josh, and Kathryn.
  • System Design: Scheduled for 3 weeks3\,\text{weeks}, led by Josh and Kathryn.
  • Testing: Scheduled for 1 week1\,\text{week}, led by Kathryn.

Systems Analysis and Design topics, timeline, and staff chevron diagram

Testing and model verification are situated at the critical junction where abstract designs transition into verified, operational software implementations.

Verification and Validation of Analysis and Design Models

Developing complex software systems requires continuous Verification and Validation (V&V) to ensure that specifications reflect operational realities and technical constraints:

  • The Analysis Model: Focuses on how the business will operate if the proposed system is developed. Its primary orientation is defining and confirming functional requirements.
  • The Design Model: Focuses on how the physical system will operate. It adapts the functional requirements to physical computing architectures while addressing all non-functional requirements (such as performance, security, maintainability, and scalability).

Moving prematurely from analysis to design without establishing model correctness introduces compounding errors into implementation. Verification and validation are managed through three tiers:

  1. Formal walkthroughs.
  2. Individual model V&V (internal consistency).
  3. Inter-model V&V (cross-model balancing).

Blind men and an elephant cartoon illustrating different model perspectives

Different modeling artifacts represent distinct facets of the same overarching system. When disparate perspectives are uncoordinated, system developers experience the parable of the blind men and the elephant—mistaking isolated components (a fan, a wall, a spear, a snake, a tree, or a rope) for the whole organism.

Walkthroughs and Quality Assurance

Walkthroughs serve as formal, structured peer reviews of models, diagrams, and technical specifications generated during analysis and design phases.

  • Composition: Conducted by collaborative, multidisciplinary review panels consisting of systems analysts, software designers, and client/business stakeholders.
  • Primary Objectives:
    • Test the fidelity of the models: Validate that diagrams accurately mirror domain business workflows, user rules, and institutional policies.
    • Uncover errors or faults early: Expose syntax errors, logic omissions, communication gaps, and boundary contradictions before committing resources to implementation.

Functional Model Verification, Validation, and Internal Consistency

Functional modeling constructs a coherent view of system functionality through three interrelated components: Use Case Diagrams, Use Case Descriptions, and Activity Diagrams.

Concept map showing interrelationships among functional models

Interrelationships Among Functional Elements
  • Use Case Descriptions contain stakeholders, actors, relationships, events, and scenarios.
  • Use Case Diagrams contain actors, use cases, and relationships.
  • Activity Diagrams contain object nodes, activities/actions, and flows (subdivided into control flows and object flows).
  • Use cases encompass specific execution scenarios. Activities and actions within activity diagrams are linked to the discrete operational events documented in use case descriptions.
Functional Model Consistency Rules
  1. Correspondence between Use Case Diagrams and Descriptions:
    • There must exist an exact 1:11:1 correspondence between use cases portrayed on a use case diagram and the detailed use case descriptions prepared.
    • Every actor designated in a use case description must be depicted on the associated use case diagram.
    • Every stakeholder identified in a use case description must be portrayed on the use case diagram.
    • All relationship types (association, include, extend, generalization) documented within a use case description must be visually portrayed on the use case diagram.
  2. Correspondence between Use Case Descriptions and Activity Diagrams:
    • Individual events identified in the normal and alternative flows of a use case description must map directly to discrete actions/activities in the activity diagram.
    • Every object node depicted in an activity diagram must be explicitly referenced within the text of the corresponding use case description.
    • The sequential execution order of steps within use case descriptions must strictly mirror the sequential control flows of the activity diagram.

Case Study: Course Withdrawal Functional Modeling

A complete functional model suite illustrates verification requirements using a course withdrawal process.

Use Case Description: Withdraw from Course
  • Use Case Name: Withdraw from course
  • ID: 22
  • Importance Level: High
  • Primary Actor: Student
  • Use Case Type: Overview, essential
  • Stakeholders and Interests: Student admin – wants to make sure student is eligible to withdraw
  • Brief Description: This use case describes how a university student withdraws from a course
  • Trigger: Student wants to withdraw from a course
  • Type: External
  • Relationships:
    • Association: student-course
    • Include: None
    • Extend: None
    • Generalisation: None
  • Normal Flow of Events:
    1. Student requests register to show enrolment by giving student id.
    2. Register finds enrolment and displays courses currently enrolled.
    3. Student selects course from which they want to withdraw.
    4. Register creates an update request with student information and course variation information.
    5. Register sends request to university handbook to check against eligibility rules.
    6. If request is eligible the register removes the course from student’s enrolment.
    7. The register generates a new timetable for student.
  • Alternative / Exceptional Flows:
    • 8. Student id is invalid.
    • 9. Student not eligible to withdraw from course.

Table specification of use case description for withdraw from course

Use Case Diagram: Enrolment System

Use case diagram for Enrolment System showing Student and Student admin

The diagram bounds the Enrolment System:

  • Primary actor Student is linked via association to the Withdraw from course use case.
  • Actor Student admin is linked to both Withdraw from course and Maintain eligibility rules use cases.
  • Multiplicity associations (∗*) indicate that multiple students and administrators interact with these system operations.
Consistency Evaluation: Activity Modeling

Comparing a naive high-level activity flow against the detailed use case description reveals major consistency flaws:

Naive four-step activity diagram for withdrawing from a subject

The naive sequence (Enter ZID →\rightarrow View enrolled subjects →\rightarrow Select subject →\rightarrow Withdraw from subject) is inconsistent with the use case description:

  • It omits the system entities (Register, Handbook).
  • It fails to capture the generation of the update request.
  • It completely ignores the eligibility check branch.
  • It leaves out the generation of an updated timetable.

Full activity diagram with object nodes and decision guards for course withdrawal

To achieve internal consistency, the full UML activity diagram models:

  1. Action: Student requests register to show enrolment details.
  2. Action: Register finds enrolment and displays courses enrolled, routing object flow to enrolment : Enrolment.
  3. Action: Student selects course from which they want to withdraw.
  4. Action: Register creates an update request with student information and course variation, creating object node updateRequest : UpdateRequest.
  5. Action: Register sends update request to handbook to check eligibility.
  6. Decision node with guard conditions:
    • [request not eligible]: Control flows directly to an activity final node.
    • [request is eligible]: Control proceeds to Register removes course from student enrolment (updating enrolment : Enrolment), which proceeds to Register generates new timetable for student (producing timetable : Timetable), terminating at an activity final node.

Structural Model Verification, Validation, and Consistency Rules

Structural modeling specifies the static architecture of a system, mapping domain concepts into software entities through Class-Responsibility-Collaborator (CRC) Cards, Class Diagrams, and Object Diagrams.

Concept map showing interrelationships among structural models

Interrelationships Among Structural Elements
  • CRC Cards define Responsibilities, Collaborators, and Attributes, serving as the direct analytical representation of Classes.
  • Class Diagrams define Classes, which contain Attributes and Operations, along with Associations/Relationships.
  • Relationships are categorized into Association (which can possess an Association Class), Aggregation (which contains Composition as a strict form), and Generalization.
  • Object Diagrams depict Objects, which are concrete InstanceOf relationships with Classes.
Structural Model Consistency Rules
  1. CRC Cards to Class Diagrams:
    • Every CRC card developed during analysis must associate directly with an identified Class on the class diagram.
    • Every responsibility listed on a CRC card must appear as an operation in the corresponding class definition.
    • Every attribute itemized on a CRC card must be formally defined as a typed attribute in the class.
    • All collaborators named on a CRC card require an explicit structural association connecting those classes on the class diagram.
    • All relationships documented across CRC cards must be reflected on the class diagram.

Behavioral Model Verification, Validation, and Consistency Rules

Behavioral modeling formalizes the dynamic execution paths and state transitions of objects across time via Sequence Diagrams, Communication Diagrams, CRUD Matrices, and Behavioral State Machines.

Concept map showing interrelationships among behavioral models

Interrelationships Among Behavioral Elements
  • Interaction Diagrams encompass Sequence Diagrams and Communication Diagrams. Both contain Actors, Objects, Messages, and Associations.
  • CRUD Matrices contain Actors, Objects, and Cell Entries detailing data operations: Create (CC), Read (RR), Update (UU), and Delete (DD).
  • Behavioral State Machines contain States and Transitions describing the lifecycles of objects.
Behavioral Model Consistency Rules
  1. Sequence Diagrams and Communication Diagrams:
    • Every actor and object appearing on a sequence diagram must appear on the corresponding communication diagram.
    • Every message sent between lifelines on a sequence diagram requires a corresponding association link between those elements on the communication diagram.
    • Every message on a sequence diagram must appear as a labeled message along the association on the communication diagram.
    • Guard conditions assigned to messages on sequence diagrams must match the guard conditions on communication diagrams.
    • The numerical sequence numbering of message labels on communication diagrams must correspond to the top-down temporal ordering of messages on the sequence diagram.
  2. State Machines and Interaction Diagrams / CRUD Matrices:
    • Transitions between states on a behavioral state machine must be triggered by or associated with specific messages sent on sequence and communication diagrams.
    • Every individual cell entry in a CRUD matrix (CC, RR, UU, or DD) implies that a message is transmitted between the interacting actor/object and the target object.
Verification Exercise: Consistency Between State Machines and CRUD Matrices

Consider an administrative patient billing scenario:

ReceptionistPatientListPatientUnpaidBill
ReceptionistRUCRUDCR
PatientListR
PatientU
UnpaidBill

CRUD matrix and behavioral state machine consistency exerciseBehavioral state machine for patient billing lifecycle

In the behavioral state machine for the patient account lifecycle: Initial State→[signsUp]Listed→[hasConsult]Billed→[pays]Account Settled→Final State\text{Initial State} \xrightarrow{[\text{signsUp}]} \text{Listed} \xrightarrow{[\text{hasConsult}]} \text{Billed} \xrightarrow{[\text{pays}]} \text{Account Settled} \xrightarrow{} \text{Final State}

  • Consistency Check: The transition [signsUp] maps to the Receptionist creating (CC) a Patient and updating (UU) the PatientList (RU).
  • The transition [hasConsult] corresponds to the generation of billing records, mapping to the Receptionist creating (CC) an UnpaidBill.
  • The transition [pays] maps to updating (UU) the UnpaidBill by the Patient and updating (UU) the Patient status.
  • Any discrepancy where a state transition has no corresponding CRUD operation indicates an incomplete model.

Inter-Model Balancing: Harmonizing Functional, Structural, and Behavioral Perspectives

Individual models cannot remain isolated silos. A system architecture is valid only when balanced across all three viewpoints:

Triangle model illustrating inter-model relationships

Balancing Functional and Structural Models

Inter-model concept map between functional and structural models

  • Every class defined on the class diagram must be referenced in or associated with at least one use case.
  • Every activity or action node on an activity diagram should map directly to a defined operation within a class on the class diagram.
  • Every object node portrayed on an activity diagram must be an instance of a recognized class on the class diagram.
Course Withdrawal Structural Specification

Class diagram for Course Withdrawal enrolment system

The class diagram defines the static infrastructure:

  • Register: Contains operations +getEnrolmentFor(in sid: int): Enrolment and +dropCourse(in code: int). Has a 1:11:1 association with Handbook and a 1:∗1:* association with Student.
  • Handbook: Contains operation +checkEligibility(in request: UpdateRequest).
  • Student: Contains attribute -sid: int. Has a 1:∗1:* association with UpdateRequest and a 1:11:1 association with Enrolment.
  • UpdateRequest: Contains operation +create(in sid: int, in code: int). Associates with Student (∗:1* : 1) and Course (1:11 : 1).
  • Course: Contains attribute -code: int.
  • Enrolment: Contains attribute -sid: int and operation +dropCourse(). Associates with Course (∗:1* : 1) and Timetable (1:11 : 1).
  • Timetable: Contains operation +generate().

Balancing Check: Every activity from the activity diagram corresponds to an operation in this class diagram:

  • Activity Register finds enrolment →\rightarrow Register.getEnrolmentFor(...).
  • Activity Register creates an update request →\rightarrow UpdateRequest.create(...).
  • Activity Register sends update request to handbook →\rightarrow Handbook.checkEligibility(...).
  • Activity Register removes course from enrolment →\rightarrow Enrolment.dropCourse().
  • Activity Register generates new timetable →\rightarrow Timetable.generate().
  • Object nodes enrolment : Enrolment, updateRequest : UpdateRequest, and timetable : Timetable correspond directly to the classes Enrolment, UpdateRequest, and Timetable.
Balancing Functional and Behavioral Models

Inter-model concept map between functional and behavioral models

  • Every sequence diagram and communication diagram must be explicitly associated with a use case scenario.
  • Actors participating on interaction diagrams must be valid actors from the use case diagram.
  • Messages passed between objects on interaction diagrams must correspond to activities documented on an activity diagram.
  • State transitions within behavioral state machines must map to activities on an activity diagram.
  • Object nodes undergoing lifecycle transformations on an activity diagram must possess a corresponding behavioral state machine.
Course Withdrawal Sequence Specification

Sequence diagram illustrating course withdrawal message flows

The sequence diagram details message passing between lifelines:

  1. student transmits message getEnrolmentFor to register.
  2. student transmits message dropCourse to register.
  3. register invokes constructor message create(sid, code) on updateRequest.
  4. register sends checkEligibility(request) to handbook.
  5. Upon evaluating the guard condition [eligible], register sends dropCourse() to enrolment.
  6. register sends generate() to timetable.

This execution sequence directly balances the functional control flow of the activity diagram.

Balancing Structural and Behavioral Models

Inter-model concept map between structural and behavioral models

  • Behavioral state machines must describe instances (objects) of classes defined on the class diagram.
  • Transitions between states on behavioral state machines must be triggered by operations or associations defined on the class diagram.
  • Messages invoked across sequence and communication diagrams must be operations defined in the target classes on the class diagram.
  • Objects instantiated in sequence and communication diagrams must be valid instances of classes present on the class diagram.
  • Computer-aided software engineering (CASE) platforms like MS Visio maintain internal repositories: once classes and operations are formally specified on a class diagram, they become available as bindings for interaction and state machine modeling.
UpdateRequest Behavioral State Machine

Behavioral state machine for UpdateRequest lifecycle

The lifecycle transitions of the UpdateRequest object balance against structural class operations: Initial State→create(sid,code)Update requested→checkEligibility(request)Update verified as eligible→dropCourse()Update executed→Final State\text{Initial State} \xrightarrow{\text{create}(sid, code)} \text{Update requested} \xrightarrow{\text{checkEligibility}(request)} \text{Update verified as eligible} \xrightarrow{\text{dropCourse}()} \text{Update executed} \xrightarrow{} \text{Final State}

Every triggering transition maps to a specific operation on the class diagram: UpdateRequest.create(...), Handbook.checkEligibility(...), and Enrolment.dropCourse().

Architectural Design Principles: Coupling and Cohesion

Software architectures must be evaluated using standard structural quality metrics: coupling and cohesion.

Coupling

Coupling measures how interrelated the modules within a system are. A module is defined as a class, object, or method. High coupling creates fragile architectures where a minor modification in one module forces cascading alterations across dependent modules. System designs strive for low coupling.

Types of Coupling
  • Interaction Coupling: Coupling generated among methods and objects through message passing. Good design adheres to the Law of Demeter, strictly limiting an object to sending messages to:
    1. Itself.
    2. An object held within one of its own attributes.
    3. An object passed to it as an explicit parameter.
    4. An object that it instantiated itself.
  • Inheritance Coupling: Coupling between classes bound within an inheritance hierarchy. Superclasses and subclasses become interdependent. Designers must avoid inheritance conflicts (where a subclass declares attributes or methods sharing identical names with superclass members).
Coupling and the Wayland Systems Industrial Metaphor

Wayland Systems diagram illustrating high traffic coupling versus low traffic coupling

Wayland Systems illustrates coupling using two industrial towns: Sidtown and Fredborough.

  • High Coupling Scenario (Fig 6.1): Better Mousetrap Co. operates its manufacturing factory in Sidtown, but all of its employees reside in Fredborough. Concurrently, Zokko Soda Co. locates its soda manufacturing plant in Sidtown, while its bottling facility is situated in Fredborough. Every morning and evening, the highway experiences severe traffic as employees commute between Fredborough and Sidtown. Day and night, heavy trucks rumble over the highway hauling bottles between facilities. This generates heavy cross-boundary coupling.
  • Low Coupling Scenario (Fig 6.2): Facilities are reorganized. Better Mousetrap Co. consolidates its workforce residences and factory within Fredborough. Zokko Soda Co. relocates its bottling plant and soda plant entirely within Sidtown. Cross-town traffic drops to zero (except for occasional pauses where workers buy soda). Modularizing related components within single domains eliminates unnecessary traffic between modules.
Cohesion

Cohesion measures how single-minded a module is. High cohesion is desirable: a module must perform or represent only one logical entity or task.

Cartoon commenting on excessive specialization versus single-mindedness

Levels of Cohesion
  • Method Cohesion: A method must execute only one distinct operation or function.
  • Class Cohesion: A class must represent only one conceptual entity in the domain model.
  • Generalisation/Specialisation Cohesion: Inheritance structures must represent strict "a-kind-of" relationships rather than opportunistic reuse of utility code.

Foundations of Software Testing and Test Planning

Software testing is a disciplined verification process with specific operational constraints:

  • The Purpose of Testing: Uncover as many errors as feasible before production release.
  • Theoretical Limit: It is impossible to prove that a system is error-free.
  • Economic Limit: It is too expensive to look for all possible bugs.

Cartoon of a motorized rocking chair launching a tester through a wall

Inherent Difficulties of Object-Oriented Testing

Object-oriented principles present distinct testing challenges:

  • Encapsulation and Information-Hiding: Internal object states cannot be inspected directly from the outside. Business processes are distributed across collaborating classes rather than residing in monolithic routines, requiring distributed tracing.
  • Inheritance: Code is spread across class hierarchies. A bug introduced in a superclass propagates across all derived subclasses, potentially destabilizing multiple business processes simultaneously.
  • Code Reuse: A single class is designed to operate in multiple diverse contexts. It must be thoroughly tested across all possible runtime configurations.
Test Planning and Stubs

A Test Plan defines a structured series of tests to be conducted throughout development. Each test case articulates:

  • Specific test objectives.
  • Precise test cases to examine.
  • Inputs, environmental conditions, and expected outputs.

Testing must occur incrementally throughout development. This incremental execution is supported by stubs—hard-coded placeholders that compile and return mocked results, enabling partial architectures to be tested before all collaborating classes are completed.

Risk Based Testing step by step cartoon guide

Risk-Based Testing Process:

  1. Identify the software you want tested.
  2. Imagine situations where damage could occur to the software.
  3. Analyze the impact of the risk occurring.
  4. Analyze the likelihood of the risk occurring.
  5. Execute a test to confirm the risk is credible.
  6. Mitigate the risk.

Unit Testing Methodologies, Rules, and Case Studies

Unit tests evaluate the internal logic and contracts of a single class in isolation.

  • Black Box Testing: Focuses on externally visible behaviors of a class based on design specifications. The tester has no access to internal source code.
  • White Box Testing: Examines internal logic, branches, and code statements, driven directly by method specifications and implementation algorithms.
The Rules of Unit Testing
  1. Write the test first: Adopt Test-Driven Development (TDD) by designing the test harness before authoring production code.
  2. Define the expected output or result: Every test case must establish explicit, unambiguous success criteria.
  3. Do not test your own programs: Developers hold unconscious cognitive biases toward their own code. (In modern software engineering: do not use the same AI model to both generate and verify your code).
  4. Test for invalid or unexpected conditions: Include negative tests to verify resilience under invalid data.
  5. Use reproducible tests: Automated tests must run deterministically and yield identical outcomes across all runs.
  6. Defect Clustering: The probability of locating more errors in any one module is directly proportional to the number of errors already discovered in that module.
Case Study: Bank of Queensland Hexadecimal Conversion Rollover

Credit cards illustrating the Bank of Queensland terminal failure

A severe unit test failure occurred in the payment terminal firmware for the Bank of Queensland. The devices contained an erroneous hexadecimal-to-decimal conversion routine. When the calendar year ticked over to 20102010, the firmware miscalculated the date and jumped six years ahead to 20162016. Because of this incorrect calculation, payment terminals misidentified active customer credit and debit cards as expired, rejecting transactions across merchant networks and rendering devices inoperable for up to 1 week1\,\text{week}.

Unit Test Plan Design: Hexadecimal to Decimal Routine

A robust test harness for a hexadecimal converter requires boundary, normal, and abnormal test coverage:

  • Normal Usage Cases: Standard positive conversions (e.g., input 0x000A yields decimal 1010; 0x00FF yields decimal 255255; 0x07DA yields decimal 20102010).
  • Boundary Cases: Limits of datatype representations (e.g., input 0x0000 yields 00; maximum integer limits 0x7FFF or 0xFFFF; year rollover transitions like 0x07D9 (20092009) transitioning to 0x07DA (20102010)).
  • Abnormal Usage Cases: Invalid characters (0x00G1, symbols, whitespace), malformed strings, null pointers, buffer overflows, negative numbers, and out-of-range hexadecimal representations.

Integration Testing Approaches and Real-World Failures

Integration tests verify that collaborating classes communicate and exchange data correctly without runtime errors. Projects typically implement four core integration testing strategies:

Diagram showing the four approaches to integration testing

1. User Interface Testing

User interface testing evaluates the presentation layer and input controls by systematically validating every operation and input form available in the interface.

  • Execution: Can be performed manually or automated using modern frameworks such as Selenium, Cypress, Playwright, or Percy. Manual inspection remains essential to evaluate visual layout and human ergonomics.
Real-World User Interface Failures in AI Systems

BBC News Taco Bell AI drive-through misfiring headlineBBC News McDonald's AI drive-through withdrawn headline

  • Taco Bell AI Drive-Through (29 August 2025): Senior Tech Reporter Shiona McCallum reported that Taco Bell reconsidered its automated AI drive-through system after an interface parsing error allowed a customer to place an order for 18,00018{,}000 waters.
  • McDonald's AI Drive-Through (18 June 2024): Technology Reporter Tom Gerken reported that McDonald's withdrew its automated drive-through ordering AI after the system misfired, adding unwanted bacon ice cream and hundreds of dollars of excess chicken nuggets to customer orders.
2. Use Case Testing

Testers execute end-to-end user workflows matching the formal use case descriptions. Because use case testing focuses exclusively on planned user goals, it is typically combined with user interface testing to verify controls and menus not covered by standard operational workflows.

3. Interaction Testing

Interaction testing validates the step-by-step transmission of data packets and method invocations between collaborating classes:

  • The test suite begins with an architecture constructed primarily of stubs.
  • Concrete classes are introduced incrementally, replacing stubs one by one.
  • Data exchanged across method boundaries is verified against expected test datasets.
  • New classes are integrated only after all currently integrated modules pass their test suites.
Failure Case: Boeing 737 MAX MCAS

The Boeing 737 MAX integrated the Maneuvering Characteristics Augmentation System (MCAS) to prevent nose-up pitching caused by the forward-positioned CFM LEAP-1B engines during high angle-of-attack manoeuvres. The MCAS software was integrated using inputs from only a single Angle of Attack (AoA) sensor. When this single sensor failed, the system repeatedly forced the aircraft's nose down. The flight control system provided no override mechanism for the flight crew, leading to two fatal crashes that claimed 346346 lives. Robust interaction testing under simulated sensor failures would have identified the danger of relying on a single sensor input.

4. System Interface Testing

System interface testing verifies automated data exchanges between the core application and external external hardware or external software platforms. This testing is critical because data transmissions between systems are typically automated and execute without direct human oversight.

Failure Case: Mars Climate Orbiter

Rendering of the Mars Climate Orbiter spacecraft

On September 23, 1999, NASA lost communication with the Mars Climate Orbiter during its orbital insertion maneuver. Ground-based computer software built by Lockheed Martin output thruster firing data in non-SI units of pound-seconds, whereas NASA trajectory navigation software expected metric newton-seconds as specified in the project contract. Because the units were mismatched, the spacecraft entered an overly low trajectory through the Martian atmosphere, caught fire, and disintegrated.

System Testing Categories and Verification Scenarios

System testing evaluates the fully integrated application to confirm that it meets all business requirements, operational constraints, and non-functional specifications:

Diagram illustrating the boundaries of system testing

1. Requirements Testing

Verifies that the implemented system satisfies all original functional requirements. It ensures that bug fixes introduced during integration testing did not cause regressions in existing features. Testers intentionally adopt the persona of uninformed users, performing improper operations to confirm that the system correctly rejects invalid input.

Dishwasher comparing actual usage with imagined usageDishwasher filled with children toys comparing real usage with imagined usage

System usage frequently diverges from design assumptions. Where designers imagine clean plates stacked evenly, real-world users load dishwashers with unrinsed, chaotic dishware or children's plastic building blocks. Requirements testing ensures systems withstand unpredictable, real-world user behaviors.

Aviation website covering Boeing 787-9 Dreamliner engine failure testing

Critical physical systems undergo extreme requirements verification. In commercial aviation, Boeing evaluated the 787-9 Dreamliner for launch customer Air New Zealand through "abuse-take-offs" and "engine-out" testing. Flight test teams deliberately cut power to one engine during the takeoff roll, verifying that flight control software and pilots could safely manage aerodynamic yaw and complete the climb.

2. Usability Testing

Evaluates the convenience, ergonomics, learnability, and human factors of the software. It is typically conducted by usability analysts experienced in user cognition and interaction design.

YouTube interface redesign comment complaining about requiring three clicks

Poor usability design harms user satisfaction. A redesign of the YouTube user interface increased navigation effort from 1 click1\,\text{click} to 3 clicks3\,\text{clicks} to reach subscribed channels, provoking strong negative feedback.

3. Security Testing

Assesses system resilience against unauthorized access, privilege escalation, data breaches, and disaster scenarios. Testing is conducted by infrastructure security analysts or specialized third-party penetration testing firms.

Security testing overview showing vulnerability scanning, static analysis, automated testing, manual testing, and penetration testing

Security testing utilizes five complementary strategies:

  • Static code analysis.
  • Automated vulnerability scanning.
  • Automated regression security suites.
  • Manual penetration testing.
  • Infrastructure audits.
Security Failure: Juspay Data Leak (2020)

Juspay, a major Indian payment processing gateway serving corporations such as Amazon and Swiggy, suffered a data breach that exposed the masked card data of 100 million100\,\text{million} cardholders. Attackers breached the network through an unpatched vulnerability on an old, forgotten server. Sensitive details including phone numbers and banking records were compromised. The incident highlights the necessity of regular infrastructure audits and automated vulnerability scans to detect unmonitored "zombie" servers before attackers can exploit them.

4. Performance Testing

Evaluates system behavior, throughput, and stability under heavy operational load by simulating high transaction volumes using automated performance testing software.

NASA Spirit rover on Mars surface

Failure Case: NASA Spirit Rover Flash Memory Exhaustion

On January 21, 2004, a few weeks after touching down on Mars, NASA's Spirit rover suddenly became unresponsive and stopped transmitting science telemetry. Performance engineers discovered that the rover's real-time operating system had accumulated too many files in flash memory, causing the memory management subsystem to crash on boot. Mission controllers restored the rover by deleting obsolete files and reformatting the flash file system.

5. Documentation Testing

Verifies the clarity and correctness of user documentation, administrative manuals, and technical references. Analysts spot-check or test every instruction, procedure, and code sample provided in the documentation to ensure they function properly in production.

Acceptance Testing, Staged Deployments, and Industry Catastrophes

Acceptance testing is performed by business users with support from the engineering project team. Its primary goal is to confirm that the complete system meets business operational needs and is ready for production sign-off.

1. Alpha Testing

Conducted in-house by internal users within a controlled development environment. Users execute realistic operational tasks, often repeating tests from system testing to verify readiness for wider deployment.

2. Beta Testing (Canary Deployments)

Releases the software to a restricted cohort of external users operating in real production environments using real data. In software deployment pipelines, this is frequently implemented as canary testing, routing production traffic through new software versions for a small subset of users before wider rollout.

Screenshot of World of Warcraft Corrupted Blood incident

Case Study: World of Warcraft Corrupted Blood Incident

In September 2005, Blizzard Entertainment released Patch 1.7 for World of Warcraft, introducing the Zul'Gurub raid zone. The raid boss Hakkar cast "Corrupted Blood," a debuff dealing 263 to 337 damage263\,\text{to}\,337\,\text{damage} every 2 seconds2\,\text{seconds} that spread between nearby allies. The debuff was intended to remain inside the raid instance, but players transferred the infection to urban hubs through player pets. The debuff rapidly spread through major cities like Ironforge, killing lower-level characters and disrupting the game world. The incident became a widely studied model of infectious disease transmission and software boundary testing.

Canary Deployment Failure: CrowdStrike Global Outage (2024)

A major IT outage occurred in July 2024 when cybersecurity firm CrowdStrike pushed a faulty configuration update to its Falcon platform, disabling approximately 8.5 million8.5\,\text{million} Microsoft Windows computers worldwide. The update caused systems to enter an unbootable Blue Screen of Death (BSOD) recovery loop, disrupting international airlines, commercial banks, and healthcare networks. Delta Air Lines lost an estimated $500 million\$500\,\text{million}, while hospitals incurred approximately $2 billion\$2\,\text{billion} in manual workarounds and canceled surgical operations.

Root Cause Analysis: The faulty update was deployed globally without using a staged canary rollout. If CrowdStrike had released the update to a small beta cohort first, the crash would have affected only a handful of test machines, preventing worldwide disruption.