Skip to main content

Library with tools for authoring TCKs for Dataspaces which use Eclipse Tractus-X technology

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tractusx_testlab-0.0.2a0.tar.gz (132.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tractusx_testlab-0.0.2a0-py3-none-any.whl (300.0 kB view details)

Uploaded Python 3

File details

Details for the file tractusx_testlab-0.0.2a0.tar.gz.

File metadata

  • Download URL: tractusx_testlab-0.0.2a0.tar.gz
  • Upload date:
  • Size: 132.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tractusx_testlab-0.0.2a0.tar.gz
Algorithm Hash digest
SHA256 ff1629c4fd9432e86d194723b0e7a2db050f499fa04ecf08e4a8f44f3f93fbe4
MD5 d4837477623b338ff84ac402b71795cb
BLAKE2b-256 51eb2c7a8cb4e939c26650f9af261ef9d910a568df94382e35a03351a347a03f

See more details on using hashes here.

File details

Details for the file tractusx_testlab-0.0.2a0-py3-none-any.whl.

File metadata

File hashes

Hashes for tractusx_testlab-0.0.2a0-py3-none-any.whl
Algorithm Hash digest
SHA256 194aa511afc28803398f07f5c0159e7dfd06bd71e49b49fd812f6107e96bdc23
MD5 62615cb252e3293304bf916e35874a02
BLAKE2b-256 0d623e1aa4b127de06b5008fc1947e66fc6530b717a24be9fc6179654d3a6776

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page