Test design#
A test answers one question: does this design work, or was this unit built right? The answer decides how often you test, on which units, and how hard.
Two questions a test can answer#
A test can answer one of two questions:
Does this design work? You test a design once per version, on a few representative units, to show it meets its requirements with margin. This guide calls that design testing.
Was this unit built right? You test every unit you build, to catch the ones that came out wrong. This guide calls that production testing.
The same stand can run both, but the tests are different:
Design testing |
Production testing |
|
|---|---|---|
Question |
Does this design meet its requirements, with margin? |
Was this unit built correctly? |
How often |
Once per design version |
On every unit |
On what |
A few representative units |
Every unit that ships |
Conditions |
Beyond expected use, to show margin |
Normal use, plus screens for build defects |
Damage |
Can wear out or destroy the unit |
Mustn’t harm a good unit |
Time |
Hours to months |
Seconds to minutes per unit |
Result |
Characterization data and margins |
Pass or fail for each unit, and trends across units |
Industry names |
Qualification, design validation test (DVT) |
Acceptance test, end-of-line (EOL) test |
NASA’s spacecraft testing shows the split. Acceptance activities “are performed on each of the flight units as they are manufactured”.[1] Qualification uses dedicated hardware tested “to verify the design, demonstrate margin, and validate an acceptance test program”.[2] The margins differ too: in thermal testing, qualification goes 15 °C beyond the highest allowable flight temperature, and acceptance only 5 °C.[2]
A production test looks for build defects, so it can stress a unit on purpose to reveal them. NASA uses random vibration “to detect bad solder joints, loose or missing fasteners, improperly mounted parts”.[2] Those are defects of one unit, not of the design.
NASA Goddard’s default is protoflight testing, which combines the two: one unit is tested at reduced qualification levels, then flown. Its thermal margin, 10 °C, sits between the other two.[2]
You’ll also meet the terms verification and validation, which NASA frames as “Was the end product realized right?” and “Was the right end product realized?”.[1] They appear in names such as DVT and “verification matrix”. This guide says design testing and production testing instead, because the two words are easy to mix up.
The golden unit#
A golden unit is a unit known to be good, kept as a reference. Production test teams use one to develop and debug tests, and to check that a new test script works before it judges real units.[3]
A golden unit has limits. Its performance can degrade over time, for example from contamination, and there’s no clear rule for how close to perfect a unit has to be to count as golden.[3] Check it against its own history, and retire it when it drifts.
Keep a known-bad unit too. A test that passes the golden unit shows only that the test can pass a unit. A test that fails a known-bad unit shows that it can fail one.
Development phases#
Hardware companies name the phases of a product’s development after the tests in each one:[4]
Engineering validation test (EVT). Early units, made with high-precision processes, to build confidence that the design works.
Design validation test (DVT). Units made the way production will make them, to show the design can be manufactured at scale and passes its tests. Typically 50 to 200 units.
Production validation test (PVT). The last phase before mass production, to show the production line meets its targets. The production jigs, fixtures and test stands have to be in place and validated.
Mass production (MP). The focus moves to yield, cost and scale.
Design testing happens in EVT and DVT. The production test stands are built and proven in PVT, and production testing runs on every unit from then on.
The V-model#
The V-model, or Vee, lays out a project as a V. Down the left side, requirements are split into a system design, then subsystems, then components. Up the right side, the parts are built, integrated and tested, and each level on the right is tested against the specification from the same level on the left:[5]
Requirements ───────────────────────────── System acceptance test
System design ───────────────────── System test
Subsystem design ───────────── Subsystem test
Component design ──────── Component test
Build
Testing goes bottom up, from components to subsystems to the whole system.[5] Each requirement’s test method is chosen as the requirement is written, not after the system is built.[5]
A single V for a whole project means finding integration problems at the end. Teams that iterate run many small Vs instead, each a short design, build and test loop.[6] They also test early and continuously, with the in-the-loop methods below, rather than once at the end.[7]
Testing before the hardware is ready: MiL, SiL, PiL and HiL#
A controller can be tested long before the system it controls exists, by simulating the rest of the loop. The system being controlled is called the plant. Each stage makes one more part real:
Stage |
The controller is |
The plant is |
What it catches |
|---|---|---|---|
Model-in-the-loop (MiL) |
A model |
A model |
Mistakes in the control design itself[8] |
Software-in-the-loop (SiL) |
Code, running as a separate process on a desktop computer |
A model |
Differences between the model and the code, found by comparing their results[9] |
Processor-in-the-loop (PiL) |
Code, running on the target processor |
A model |
Differences from the target’s compiler and arithmetic, and execution time, which PiL measures[10] |
Hardware-in-the-loop (HiL) |
The real controller hardware, with its real inputs and outputs |
A model, running in real time on a test system |
Timing, wiring and signal problems, and the controller’s response to faults[11] |
In HiL, the plant model runs in real time, so the controller sees realistic timing.[11] After HiL comes testing on the real system, on a test stand such as an e-axle dyno.
In HiL, only the controller is real, so faults that would damage the plant are safe to apply: a short that would destroy a real motor is an input to the plant model. HiL can start before the whole system exists, and it repeats edge cases and faults exactly.[8]
The dyno’s own control software is tested close to SiL. Its tests run the stand’s state machine against fake motor controllers and a fake power supply, on a laptop, before the software ever drives a motor. The fakes are simple stand-ins, not a full plant model.
Where tests come from#
Requirements#
Each requirement names how it will be checked: by test, analysis, demonstration or inspection.[1] Each requirement checked by test needs at least one test case, and a review should ask whether every requirement traces to one.[5] NASA records the results in a requirements compliance or verification matrix, which keeps the link between each requirement and its results.[1] See Systems engineering for writing requirements.
Failure modes#
An FMEA lists how each part can fail, and how each failure is prevented or detected. Each prevention or detection measure is a claim that needs a test. A design FMEA leads to design tests that cause each failure on purpose, such as unplugging a sensor to show the stand trips. A process FMEA leads to production tests that catch each build defect, such as a missing seal. See the FMEA example.
Limits on what you can test#
Some requirements can’t be tested the way they’re written, or not at a cost that makes sense:
What you can measure. The dyno has no torque sensor, so a requirement on shaft torque needs a sensor added, or an analysis from motor current.
What’s safe to do. Design tests can push a unit to failure. Production tests mustn’t damage a good unit.
Time and cost. A production test that takes an hour per unit sets the production rate.
Access. Some points can only be tested before assembly closes them up.
Designing a test#
A test applies a stimulus to the DUT and measures its response. To design one, decide:
The question. Design or production, and which requirement or failure mode.
The stimulus. What you apply, at what levels, and in what order.
The response. Which channels you record, at what rate and accuracy. See Measurement quality.
The criteria. For a pass or fail test, the limits. For a characterization, the data you need.
The conditions. Temperature, warm-up, and the steady state you wait for before you record.
Design of experiments#
When several inputs matter, plan the test points in advance. Design of experiments (DOE) is a method for choosing those test points.[12]
The dyno’s sequence is a simple planned experiment. It has two inputs, speed and load. It runs every combination of 5 speeds and 3 loads, 15 test points in all, which is called a full factorial. With more inputs, a full factorial grows fast, and DOE gives smaller designs that still separate each input’s effect. Statistical analysis and DOE covers those designs, and how to randomize, replicate and block the dyno’s test points.
Worked example: one requirement, two tests#
The fluids panel’s proof and leak branch fills a vessel, seals it, and watches its pressure fall. Suppose the vessel has this requirement:
The vessel shall lose no more than 1 psig in 60 s, after being filled to 72 psig and sealed.
The design test and the production test both use that procedure, but answer different questions:
Design test |
Production test |
|
|---|---|---|
Units |
A few vessels from the first build |
Every vessel |
Conditions |
Several fill pressures and temperatures, to find the margin |
72 psig at room temperature |
Duration |
Long holds, to see the full leak curve |
60 s |
Result |
The leak rate against pressure and temperature, and the margin to 1 psig |
Pass or fail for each vessel, with its pressure drop |
Run the production test on a golden vessel and on a known leaky one before you trust it. Then, across every vessel tested, watch the trend of the pressure drop: a slow rise across many passing units warns of a process problem before units start to fail.
Further reading#
NASA, 5.3 Product Verification, NASA Systems Engineering Handbook.
NASA, GSFC-STD-7000B, General Environmental Verification Standard (GEVS), for qualification, protoflight and acceptance testing of spacecraft.
US Federal Highway Administration, Systems Engineering for ITS: Integration and System Verification, on the V-model.
NI, What Is Hardware-in-the-Loop (HIL)?, on MiL, SiL and HiL.
NIST/SEMATECH, e-Handbook of Statistical Methods: Process Improvement, on design of experiments.