Automated CI/CD Pipeline

Automating IO-Link tests: Our IO-Link testers no longer need a mouse. The Master Tester, Device Tester, COD, Diagnosis Tool, and IO-Link Spy will run on Linux as of SPS 2026. With just a single command, tests can be started automatically, and the build server then reads the result.

Until now, the protocol test was the exception: the firmware was built and tested with every commit, but for the IO-Link test, someone had to go to the lab and run the test manually. As a result, errors often went unnoticed for weeks. Now the test runs with every commit or every night, and you only need Windows to view the results.

IO-Link Tests in the Pipeline: Why It Failed Until Now

A build server doesn’t click. It launches a program, waits until it finishes, and evaluates the return value. Test software with a graphical interface usually won’t even start there, or gets stuck at the first dialog.

A tool for the test chain must therefore run without prompting, report its result as a return value, and write a report that the server can read. Usually, that is JUnit XML.

Test software with GUI vs. command line on the build serverFive things a build server needs: start without a desktop, no prompts, result as exit code, machine-readable report, configuration in the repository. The GUI meets none of them, command line and API meet all.What the build server needsTest software with GUIWith command line or APIRuns on the build agentwon't start without a desktopruns as a normal processNo promptsa dialog stalls the runall via parameters or filesResult as exit codevisible on screen only0, 1, 2, 3 by outcomeReadable reportPDF filed by handJUnit XML, JSON and PDFConfiguration in the repolives on the lab PCoptions file next to firmware
Figure 1: What the build server needs from a test tool.

Test Specification V1.1.6 and the CRA: Why Evidence Matters Now

71 million IO-Link nodes were installed at the end of 2025, 9.7 million of which were added in 2025 alone, according to PROFIBUS & PROFINET International. Every device variant and every firmware version must be retested, and starting in December 2026, all of our testers will test according to the V1.1.6 specification. On top of this comes the Cyber Resilience Act: reporting obligations have applied since September 2026, with all rules taking effect from December 2027. Test reports will then be part of the technical documentation and must be retained for ten years. The test chain stores them automatically for every firmware version.

Five IO-Link Test Tools with Command Line

ToolPurposeInterfaceResult
Master Testertests the protocol of mastersCommand mtaJUnit, PDF, JSON, project file
Device Testertests the protocol and the firmware update of devicesCommand with pluginJUnit, PDF, project file
CODemulates any device, generates errors and loadREST-APIJSON
Diagnosis Tool and IO-Link Spyrecord the lineCommand with HTTP-APIRecording

Master Tester

The mta command uses the same test logic as the application with a graphical interface and runs on Linux with .NET 9. Anyone who has only worked on Data Storage can specifically start its 20 tests.
# Aufbau prüfen: Master, Master Tester Unit, Kabel
mta check --mtu-port /dev/ttyUSB0 --eut-port 2 --stcs-host 192.168.1.20

# Nur die Gruppe Data Storage, mit JUnit-Bericht
mta run ci/master.mtproj --select DS --save results/master.mtproj --report results/master.xml

# Dauerlauf: 100 Wiederholungen
mta-repeater --run "ci/master.mtproj --mtu-port /dev/ttyUSB0" --iterations 100 --stop-on failed
Return values of mta
ValueMeaning
0All passed
1At least one test failed
2Operating error
3Setup disrupted: license, Master Tester Unit, or STCS missing
130Aborted, the partial result is retained

The difference between 1 and 3 is important, because this way a loose cable doesn’t end up with the developer as a firmware error.

Device Tester

The Device Tester also starts without a graphical interface as soon as it receives parameters. IODD and test script are mandatory; everything else is stored in an options file in the repository. This also makes it possible to test the device’s firmware update.

# dt_ci.txt #
-port /dev/ttyACM0
-iodd "iodd/MyDevice-IODD1.1.xml"
-testScript "scripts/Protocol_test_cases.xml"
-otherconfig 30 true false true 0
-junitReport "results/device.xml"
Device_Tester_application -options ci/dt_ci.txt
Return values of the Device Tester
ValueMeaning
0 / 1All passed / at least one test failed
2 / 3 / 4IODD, test script, or option invalid
8No connection to the Device Tester
10Mandatory parameters missing
11 / 13Plugin missing or outdated
14The test hardware requires a firmware update

COD

The COD emulates any device that has an IODD. Via the REST API, the test can make it respond too late, falsify checksums, or report errors in Data Storage. On the side, it also counts how often the master restarts or the cycle time is exceeded.

curl http://localhost:49851/device/communication/stats

Diagnosis Tool and IO-Link Spy

Both share a command that runs permanently on the test bench, including on ARM machines. The test chain starts and stops the recording via HTTP and stores it alongside the report.

TEConcept.IOLinkLineDataCLI --mode Api --port /dev/serial/by-id/usb-... --http-port 8735

Separating the build server and the Linux test bench

Builds run on standard build machines, while testing is done on a Linux machine with the test hardware connected via USB. This machine is registered as its own runner and only accepts jobs from internal repositories.

From commit to test report via build machine and test bench PCStep 1 commit and step 2 build run on the build machine. The firmware image goes to the Linux test bench PC. There it is flashed, a capture starts, the IO-Link tests run and the results are saved. Exit code and JUnit report go back to the gate, which allows or blocks the merge. The artifacts can optionally be reviewed in the GUI on a Windows PC.Build machine (server or cloud)Test bench PC (Linux, self-hosted runner)1CommitPush ormerge request2BuildBuild firmware,unit testsReview (optional)Windows PC, view onlyArtifacts7Gate0: merge allowedelse: blocked3FlashFlash firmwareto the device4CaptureDiagnosis orSpy records5IO-Link testsmta orDevice Tester6ResultsSave JUnit, PDFand capturefirmware.hexExit code, JUnit
Figure 2: From commit to test report.

Example setups for device and master manufacturers

Example setup for a device manufacturerThe CI server sends the job to a Linux PC at the test bench. Via USB the PC controls the Device Tester hardware, which is powered with 24 volts and connected to the device under test by an IO-Link cable. An IO-Link Spy is clamped onto the cable and connected to the PC via USB-C. A debug programmer flashes the firmware onto the device under test. Optionally, a Windows PC fetches the reports from the CI server to view them in the GUI.CI serverGitLab, Jenkins,GitHub, Azure DevOpsWindows PCview onlyReportsTest bench PC (Linux)self-hosted runnerDevice Tester (CLI)Diagnosis CLIFlash toolJobDebug programmerSWD or JTAGUSBPower supply24 V DCDevice Tester hardwarevia USBIO-Link Deviceunder test24 VUSBIO-Link (M12)SpyUSB-CSWD
Figure 3: Example setup for device manufacturers.

At the master manufacturer, the Master Tester Unit tests the protocol, and CODs on the remaining ports put the master under load. Their counters then show whether it held the cycle time.

Example setup for a master manufacturer with protocol and load testThe CI server sends the job to a Linux PC at the test bench. It runs mta, one COD Communication Server per COD on ports 49851 to 49853 and the Diagnosis CLI, with the STCS local or on the network. Through the STCS the PC accesses the master under test via SMI. Via a USB hub, the Master Tester Unit connects to port 2 of the master under test, three CODs to ports 1, 3 and 4, and an IO-Link Spy sits on the cable to port 4. Optionally, a Windows PC fetches the reports from the CI server to view them in the GUI.CI serverGitLab, Jenkins,GitHub, Azure DevOpsTest bench PC (Linux)self-hosted runnermta · STCS · Diagnosis CLICOD servers (49851–49853)JobIO-Link Masterunder testPort 1Port 2Port 3Port 4SMI via STCSUSB hubUSBLoad test: all ports in useCOD (49851)Master Tester UnitCOD (49852)COD (49853)--eut-port 2SpyUSB-CWindows PCview onlyReports
Figure 4: Example setup for master manufacturers with load test.

This is what the job looks like in GitLab CI:

master-protocol:
  stage: iolink
  tags: [iolink-bench]
  script:
    - ./ci/flash.sh build/master.hex
    - mta check --mtu-port /dev/ttyUSB0 --eut-port 2 --stcs-host 192.168.1.20
    - mta run ci/master.mtproj --select DS --report results/master.xml
  artifacts:
    when: always
    paths: [results/]
    reports:
      junit: results/master.xml

Trade fair demo: test automation on the Raspberry Pi

For the SPS, we built a test bench on a Raspberry Pi 5 that tests our 1-Port USB-C Master. The Master Tester Unit plays the device, while the Spy records along.

Setup of the SPS 2026 trade show demoA Raspberry Pi 5 running Linux is CI agent and test bench PC. It runs pytest, the MTA command line, STCS 2.0, the Diagnosis CLI, the web UI with MCP server and a results share. Connected via USB: the 1-port USB-C IO-Link master under test with 24 volt supply, the Master Tester Unit playing the device, and the IO-Link Spy on the cable between master and MTU. A Windows laptop only displays the results, an AI agent can optionally start the tests via MCP.24 V DCIO-Link Masterunder testSpyMTUplays the DeviceRaspberry Pi 5 · LinuxCI agentpytest · mta · STCSDiagnosis CLIWeb UI · MCPUSB-CUSBUSBWindows laptopview onlyEthernetAI agent (optional)MCP
Figure 7: Setup of the trade fair demo.

The entire test logic fits in five lines:

PROTOCOL_TESTS = ["SDCI_TC_0184", "SDCI_TC_0210", "SDCI_TC_0168"]

@pytest.mark.parametrize("tc", PROTOCOL_TESTS)
def test_master_protocol(tc, spy_capture, run_dir):
    result = mta.run(tc, save=run_dir / f"{tc}.mtproj")
    assert result.passed, result.failure_summary()

Three tests from the official script turn green, a fourth deliberately turns red: the script copy expects VendorID 65001, but the device reports 65000. The run takes just under 30 seconds, and the entire script with 141 test cases takes about 14 minutes.

Report of a real run: three tests green, one deliberately red.

The demo’s web interface. An AI agent can also start the tests, via an MCP server.

Exit codes: who needs to act when the test turns red?

Which exit code goes to whomAfter the test run the pipeline reads the exit code. 0 means passed, the merge is allowed. 1 means a test case failed, the development team reviews test case and capture. 3 from the Master Tester or 8 from the Device Tester means the test setup is faulty, the test bench gets checked. 2 from the Master Tester or 2 to 4 and 10 from the Device Tester means an invalid call, the pipeline configuration gets fixed.Test run finishedPipeline readsthe exit code0 · passedall test cases greenMerge allowedArchive report and capture1 · test case failedrun complete, test redDevelopment teamReview test case and capture3 (mta) · 8 (Device Tester)test setup faultyCheck test benchCable, hardware, STCS, license2 (mta) · 2–4, 10 (Device Tester)invalid call or filePipeline configParameters, IODD, test script
Figure 5: Which exit code goes to whom.

Test plan: on every commit, nightly, before the release

Three test cycles: every commit, every night, before releaseEvery commit runs a setup check and the matching test groups with a JUnit report. Every night runs the full suite, endurance runs, error and load tests with CODs and a capture of each run. Before release the full conformance run produces the PDF test report as the basis for the manufacturer declaration.frequent, small scoperare, full scopeEvery commitSetup check with mta checkTest groups for the changeJUnit report in merge requestEvery nightFull test suiteEndurance runs, mta-repeaterError and load tests with CODsCapture of every runBefore releaseFull conformance runPDF test reportBasis for Manufacturer Declaration
Figure 6: Three test cycles.

What Automated IO-Link Tests Deliver

A protocol error is spotted on the day of the change, and the commit, failed test, and recording are all in one place. Setting it up takes time at the start, but after that every test runs the same way.

It does not replace the conformance test for the declaration of conformity. However, it leaves hardly any surprises, because the test chain uses the same testers that work in our accredited Test Center.

FAQ: IO-Link-Tests in CI/CD-Pipelines

Does the test chain replace the conformance test?

No. However, the Master Tester and Device Tester can also generate the PDF test report for this via command.

Only for viewing reports, project files, and recordings; the tests themselves run on Linux.

Currently according to V1.1.5, from December 2026 according to V1.1.6.

We provide pricing and licensing information upon request. You can also rent the COD and Diagnosis Tool for three or six months.