Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Eclipse Tractus-X SDK TestLab

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 .testpkg artifacts
  • 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.

Release files for tractusx-testlab 1a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tractusx-testlab 1a1
File Size Uploaded
tractusx_testlab-1a1.tar.gz 196.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tractusx-testlab 1a1
File Interpreter ABI Platform
tractusx_testlab-1a1-py3-none-any.whl Python 3 none any Details

Total release size: 587.6 kB

Release files / tractusx_testlab-1a1.tar.gz

Download URL tractusx_testlab-1a1.tar.gz
Size 196.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5cae7cb7083ad671cef896f155daf11805dbd7136512be3a42211cb106227327
BLAKE2b-256 checksum
How to use checksums
895a79575a6f5f867901be286c1a07e19a6c34f7f5e6d4d2506ef658b10b3168
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / tractusx_testlab-1a1-py3-none-any.whl

Download URL tractusx_testlab-1a1-py3-none-any.whl
Size 391.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2174627449d981610bce22324307b9dacc38ebd77bb517a2773ffc1bdcef4a02
BLAKE2b-256 checksum
How to use checksums
2d30aba47a6fabbba6bf96997391f575bdf4bbf7ce4b861ef5f0517be136af9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page