Skip to main content

Test automation framework inspired by NI TestStand, built on Prefect

Project description

PyTestFlow

PyTestFlow is a Python test executive built on top of Prefect. It turns decorated Python functions into traceable test steps and runs them in ordered flows.

Requires prefect>=3.4 and Python 3.10+.

Repositories

Installation

python -m pip install pytestflow

Init the workspace

pytestflow init

Set the environment variable as suggested from the CLI

Usage

pytestflow start

Open the web gui at the url indicated by the CLI.

Core concepts

  • Steps are Prefect tasks defined using @step or specialized step decorators.
  • A TestSequence is a Prefect flow that aggregates and executes multiple steps, tracking their states.
  • ptf_context is a shared runtime context that provides access to globals, locals, results, and current_step.
  • SequentialProcessModel orchestrates execution callbacks in a fixed lifecycle: pre_uut -> main_sequence -> post_uut -> report -> database_logging.
  • The main output of the process model is stored in both main_results and main_result for backward compatibility.

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

pytestflow-0.2.2.tar.gz (91.5 kB view details)

Uploaded Source

Built Distribution

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

pytestflow-0.2.2-py3-none-any.whl (106.8 kB view details)

Uploaded Python 3

File details

Details for the file pytestflow-0.2.2.tar.gz.

File metadata

  • Download URL: pytestflow-0.2.2.tar.gz
  • Upload date:
  • Size: 91.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pytestflow-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ae1f4c7b941647d3f0d6581d15aa0b20400cfcf2670a3dfaa37e6aa843118334
MD5 40f804dd466511e2cd08ad87c6f43b3d
BLAKE2b-256 a54af385bf88f144504484c1ee5e6bff1f1c22d9dd34981fafae5ced909b6730

See more details on using hashes here.

File details

Details for the file pytestflow-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pytestflow-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 106.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for pytestflow-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d4329f3550b6414a71e8e8c0688ec589667315558a95ad3f169c623b06a0bccb
MD5 f6bd1ebe61b7d49abfd08cf00eb57fbe
BLAKE2b-256 ee0fae44cd74f0a021c8e4d9ea8911b86a08a54cc1526f77dae0669509cd2448

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