Stations
Deploy your test stations either in-house or at your suppliers.

Overview
Deploying test procedures in production often means duplicating test benches across multiple suppliers or production sites. At the same time, it's crucial to control write access, ensuring only authorized procedures and components are tested. Stations in TofuPilot make it easy to share procedures across physical benches, manage access, and accurately track analytics.
Integration
To create a station in TofuPilot:
- Go to the Stations tab.
- Click Create Station and enter a name. A unique station ID (e.g., STA1) will be generated.
- Generate the API key and link relevant procedures to the station.
Use the generated API key in your TofuPilot client by passing it as the api_key
argument in your script or storing it in your environment variables. Check Account management for more details.
In your script, make sure to use the procedure_id
linked to your station when pushing test runs to TofuPilot.
Required parameters
# Before running the script, ensure you have created a station in the TofuPilot interface
# and linked it to the specified procedure ID ("FVT1" in this example).
# You also need to save your API key in an environment variable named "STATION_API_KEY"
# or pass it directly as an argument like this: TofuPilot(test, api_key="STATION_API_KEY")
import openhtf as htf
from tofupilot.openhtf import TofuPilot
def phase_one(test):
return htf.PhaseResult.CONTINUE
def main():
test = htf.Test(
phase_one,
procedure_id="FVT1", # Create a station in TofuPilot linked to this procedure ID
part_number="PCBA01",
)
# The API key can be set in environment variables or passed directly.
with TofuPilot(test):
test.execute(lambda: "PCB1A001")
if __name__ == "__main__":
main()
- Name
procedure_id
- Type
- str
- Description
The ID of the procedure associated with the station.
- Name
api_key
- Type
- str
- Description
The API key generated by TofuPilot for the station.
In-app view
Manage Stations
In the Stations tab, you can create and manage your Stations.

Click on a specific Station (e.g. here "STA1") to:
- Generate, regenerate, or delete API keys.
- Add or remove linked procedures.
- Edit the station's name and ID.
- Add a picture to the station.

You can also monitor yield and weekly runs for each linked procedure.
Filter Procedures by Station
In the Procedures section, you can filter test runs by Stations to view data from a specific station, along with related Components and Batch numbers.
