PadhaikoAll subjects

Past exam question: Assignment 3, Q25

Instrumentation · 4 marks

Open in the Padhaiko app

Topic: Software for Instrumentation Application

Question

What are the different levels of testing?

Solution

Four Progressive Levels of Software Testing: Software testing verifies correctness and reliability from individual code functions up to the complete deployed instrumentation product across four sequential levels:

  1. Unit Testing:
    • Scope: Tests individual functions, modules, or classes in isolation (e.g., testing an ADC scaling function or a CRC routine independently).
    • Approach: Primarily white-box testing performed by the developer during coding to verify internal logic, boundary values, and error-free execution.
  2. Integration Testing:
    • Scope: Combines individually tested modules and verifies the interfaces, parameter passing, data updates, and timing between them (e.g., verifying that the ADC driver passes calibrated counts cleanly to the LCD and UART logger modules).
  3. System Testing:
    • Scope: Evaluates the completely compiled and integrated software–hardware product as a whole against functional and non-functional requirements.
    • Sub-types: Functionality testing, Performance testing (response time, load, stress under heavy sensor rates), and Security & Portability testing.
  4. Acceptance Testing:
    • Scope: Final validation before customer handover to verify real-world user interaction and requirements compliance.
    • Sub-types: Alpha testing (performed internally by the development/QA team simulating real operating conditions) and Beta testing (performed by end users in their actual production environment to catch residual field issues).

Summary Progression:

Software Testing Levels ProgressionText
[1. Unit Testing] ---> [2. Integration Testing] ---> [3. System Testing] ---> [4. Acceptance Testing]
  (Individual           (Module Interfaces            (Whole Product:          (Customer Readiness:
   Functions)            & Data Flow)                  Perf/Func/Sec)           Alpha & Beta)
Answer:

The four levels of software testing are: (1) Unit Testing (testing individual modules/functions in isolation, mainly white-box), (2) Integration Testing (verifying interfaces and data exchange between combined modules), (3) System Testing (testing the complete integrated system for functionality, performance, load/stress, and security), and (4) Acceptance Testing (final validation via internal Alpha and field Beta testing before handover).

All past exam questions for Instrumentation