E2E test specs¶
You don't need to know your product. Its spec says what the test must prove, which steps to use and what the finished TCK looks like. You and your assistant turn it into YAML, make it green and open the pull request.
Home · Product catalog · Glossary
Pick your product¶
| Product | What the test proves | Tests | Runs in the workshop | Spec |
|---|---|---|---|---|
| Business Partner Data Management (BPDM) | A business partner a member uploads to the Gate can be read back, and the Gate refuses a caller without a token. | 2 + 1 optional | Build and compile only | Draft |
| BPN-DID Resolution Service (BDRS) | A partner is found and its catalog is reached with nothing but its BPN, and it resolves to the right identity. | 3 | Yes | Draft |
| Digital Twin Registry | A partner finds a twin by its part number and reads it through the owner's connector, and a twin that does not exist is not found. | 3 + 1 optional | Yes | Proven |
| Tractus-X EDC (connector) | A partner finds an offer in the catalog, negotiates a contract and gets the data, and without a token it gets nothing. | 3 + 1 optional | Yes | Draft |
| Tractus-X IdentityHub (wallet and IssuerService) | A partner whose wallet holds the right credentials gets the contract, and an offer meant for another company stays invisible to it. | 2 | Yes | Draft |
Proven: a TCK built from the spec passed in GitHub Actions. Draft: not run end to end yet. If something in a draft does not hold, tell a facilitator: your finding fixes the spec.
Every spec has the same eight parts¶
| Part | Tells you |
|---|---|
| 1 · The product | What it does, for someone who has never heard of it |
| 2 · The journey | The story, move by move, between your side and the partner side |
| 3 · The TCK you deliver | Folder, manifest fields, variables, schemas |
| 4 · The tests | Each test, phase by phase: step, what happens, what must be true |
| 5 · Break it on purpose | How to see each check fail for the right reason |
| 6 · Watch out | What went wrong before |
| 7 · Not in this spec | What you do not need to test today |
| 8 · Give it to your assistant | The prompt, and the raw spec to attach |
The target TCK, for every product¶
<product repository>/
├── tck/e2e/
│ ├── index.yaml # the manifest: id <product>-e2e, kind tck, syntax v1-alpha
│ ├── tests/ # one file per test, each with setup, execution, teardown
│ └── schemas/ # only when a test checks an answer against a JSON schema
├── .tractusx # e2eTest: tck/e2e
└── .github/workflows/e2e-test.yml
| Rule | Why |
|---|---|
| At least one positive test and one negative test | A test that only ever says yes proves nothing |
Each test file is listed under tests: in the manifest, and repeats its id as namespace |
Otherwise it is not part of the project |
| Only steps the spec names | They are TestLab's ready-made steps. An invented step does not compile |
Every check in the spec is a validate entry |
The checks are what the test proves |
Addresses, BPNs and secrets are variables or infrastructure.* references |
The same test runs in the workshop, in CI and at a partner |
What setup creates, teardown removes |
The test must pass twice in a row |
metadata.license: Apache-2.0, with the Eclipse Tractus-X header in every file |
It is contributed to an Eclipse project |
Done when¶
- Compile in the IDE is green (or
testlab validate tck/e2e/index.yamlreports no issues). - The required tests of your spec pass against your connectors, or, for a product that does not run in the workshop, compile.
- You broke each check once on purpose and saw it fail.
- The pull request to the product's repository is open, with
tck/e2e/, the.tractusxlink and the workflow, and its check is green.
Write a spec for another product¶
Copy a spec in specs/, keep the eight parts, and run python specs/build_specs.py. The script checks the spec against specs/spec.schema.json and refuses any step that TestLab does not have.
NOTICE¶
This work is licensed under the CC-BY-4.0.
- SPDX-License-Identifier: CC-BY-4.0
- SPDX-FileCopyrightText: 2026 Contributors to the Eclipse Foundation
- Source URL: https://github.com/eclipse-tractusx/tutorial-resources