Library with tools for authoring TCKs for Dataspaces which use Eclipse Tractus-X technology
Project description
Eclipse Tractus-X Test Lab
TestLab is the testing framework built into the Tractus-X SDK. It enables you to author, compile, distribute, and execute automated test cases against dataspace connectors and industry services — without writing any Python code.
Test authors write declarative YAML tests describing the steps to execute, the services to connect to, the assertions to evaluate, and the cleanup to perform. TestLab takes care of the rest: validation, encryption, packaging, execution, and structured reporting.
Key Components
- Tests — YAML-defined test sequences composed of reusable, predefined steps
- Compiler — Validates tests at compile time and packages them into portable, encrypted-by-default
.testpkgartifacts - Player — An async executor deployable as standalone CLI or embeddable in an existing application, with cryptographic identity for package authorization
- Services — Managed SDK service lifecycle for connector, provider, and DTR instances with automatic initialization and reuse across steps
- Server — FastAPI-based callback/webhook engine with dynamically mounted routes for async request/response patterns
How It Works
Tests can declare long-lived services that persist for the test duration (avoiding repeated initialization), configure callback endpoints to receive async responses, and leverage runtime variable resolution. These tests are compiled with strict validation, packaged into distributable artifacts, and executed by the Player — which resolves runtime variables, manages step sequencing, evaluates assertions, orchestrates managed services, and provides live execution status.
Tests with steps like (e.g., provision_asset, negotiate_contract, validate_aspect_model) can be included inside of test cases, which enable reusability and personalized configurations for different scenarios.
Getting Started
Please refer to the INSTALL.md for installation instructions.
Documentation
Detailed documentation is available in the docs directory.
Contributing
Please refer to the CONTRIBUTING.md file for information on how to contribute to this project.
License
Distributed under the Apache License 2.0. See LICENSE for code and LICENSE_non-code for non-code content.
NOTICE
This work is licensed under the Apache-2.0.
- SPDX-License-Identifier: Apache-2.0
- SPDX-FileCopyrightText: 2026 Contributors to the Eclipse Foundation
- SPDX-FileCopyrightText: 2026 Catena-X Automotive Network e.V.
- Source URL: https://github.com/eclipse-tractusx/tractusx-testlab
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tractusx_testlab-0.0.1a0.tar.gz.
File metadata
- Download URL: tractusx_testlab-0.0.1a0.tar.gz
- Upload date:
- Size: 131.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba7cdc2369aa5ab9bd985b1397b37245f8c84c1ac44ed2a994ad0ec4340bf9ef
|
|
| MD5 |
e3885628e553871f1115141432667114
|
|
| BLAKE2b-256 |
f7ea64aa9142554e133354520cd7d9dc702eda960cdc7bc3b4979b3c3b9bdd40
|
File details
Details for the file tractusx_testlab-0.0.1a0-py3-none-any.whl.
File metadata
- Download URL: tractusx_testlab-0.0.1a0-py3-none-any.whl
- Upload date:
- Size: 306.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
289257055035198774b5f6669f5747a52938f0518a4fff8b63f6ba59e4f9d746
|
|
| MD5 |
3a6e570051185a5f9d80f345135aeb85
|
|
| BLAKE2b-256 |
5d6ae1edb105ab9e9d35078af4dd0c4b0f06f78eaf1a657b16f31dee6ec96756
|