Test software development
Most test programs work well on the day nothing goes wrong. Their real character shows when the meter answers late, the operator presses Cancel halfway through energization or the database refuses the final record. At that moment the software either knows exactly what happened, or it guesses.
This chapter builds the software in four steps: separate drivers, measurement methods, decision rules and orchestration; design sequences with explicit outcomes and safe termination; compare validated observations with versioned, variant-specific limits; and keep a durable history of every attempt. Simulators exercise the failure paths cheaply, while the measurement paths and protective functions still need physical validation.
Articles in this chapter
Articles: 4
- 5.1Build software modules, drivers and simulatorsA replacement meter should not require rewriting the product's acceptance limits. A changed limit should not require editing the meter driver.
- 5.2Test sequences, aborts and recoveryA test sequence is responsible for more than reaching the last line. It must know which product it tested, what it actually measured, why it stopped and whether the station is safe to hand back.
- 5.3Implement measurements, limits and variant configurationsThe value 5.012 is not yet a measurement decision. It still needs units, a valid acquisition, the right product configuration and a rule that means what the engineer intended.
- 5.4Preserve results, attempts and retest historyThe third test passes. That is useful news, but it does not explain what happened on the first two attempts.