Lesson 3 of 4 · Mock environments, errors and evidence boundaries
Test the behavior you claim
8 minute lesson · 3 checks along the way
Your goal for this lessonDesign meaningful software checks and distinguish simulated behavior from hardware evidence.
In this lesson 3 sections · 3 checks
Read & understand
A mock environment makes a smaller claim
The OBC test-file guide describes a controlled environment that simulates communication, command parsing, memory access and reset behavior. Such a model can make a software failure repeatable without requiring every physical component. The description of a harness, however, is not evidence that every linked file is present or that a particular hardware revision passed it.
In an original exercise, a parser takes a simplified record and either accepts a valid command or rejects invalid input. The test specifies the expected result before running the code. It records what was supplied and what was observed. Printing the word passed without checking the result would not test the parser’s behavior.
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Include cases that should fail safely
A fictional test set includes a complete valid message, a truncated message, an overlong message and a message with a damaged check field. The expected outcomes differ: accept the valid case, reject malformed cases and avoid changing the modelled mission state for rejected input. A test that only supplies valid data misses these boundaries.
A separate stateful example issues the same request identifier twice. If the defined behavior is to perform the action once, the test should inspect the action count as well as the returned acknowledgment. Two acknowledgments are not necessarily two actions. The expected duplicate policy must be explicit rather than guessed from an output string.
The claim grows with the evidence
A passing simulated case does not establish every physical boundary.
Open full-size diagram in a new tab: The claim grows with the evidenceCheck 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Move from a model to the physical interface
Suppose the simulated parser passes all four cases. That supports the tested parsing behavior, but says nothing directly about connector alignment, voltage levels, radio propagation or behavior at temperature extremes. A hardware integration test needs its own setup, observations and acceptance measures.
A useful sequence preserves the same logical cases while adding the physical boundaries relevant to the next claim. When a model and board disagree, record both versions and reproduce the difference. The goal is to learn which assumption failed, not to declare one environment universally authoritative. No software or hardware is executed by this lesson.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: BIRDS Bus: OBC software test-file guideDescribes a mock environment for communication, parsing, memory and reset behavior. Documentation of a proposed test harness is not proof that every linked file is available or that flight hardware passed it.
- Read: BIRDS Bus: mission command guideThe guide distinguishes a 14-byte command from a 25-byte padded simulator buffer. Command examples contain ambiguities, so this lesson uses the length distinction only, not operational command instructions.