embeint.htf
Open HTF
Station runtime

Custom stages

Extend a station with product-specific test logic.

Built-in stages cover common actions such as printing, programming, validation, and HTTP calls. A product can register its own stage factory when a jig needs logic specific to its hardware.

The sample runtime constructs a BasicStation with a map of custom stage kinds:

from embeint_htf_station.stages import StageFactory
from embeint_htf_station.stations import BasicStation

stage_factories: dict[str, StageFactory] = {
    # "my-stage-kind": MyStage,
}
station = BasicStation(settings, stage_factories=stage_factories)

Add the stage implementation to your station application, register its kind, then use that kind in the YAML plan. Keep pass and fail criteria explicit and make each stage report enough context to diagnose a failed DUT without rerunning it blindly.

Use the samples in your station repository checkout as the current reference for stage configuration and runtime APIs.