Skip to main content

Update Zephyr Scale Cloud test cycle executions from CI, workflows, or BDD.

Project description

zephyr-scale-test-cycle

Update Zephyr Scale Cloud test cycle executions from CI, workflows, or BDD.

Install

pip install zephyr-scale-test-cycle

Requires Python 3.10+.

CLI

After install, use a console script (both names call the same CLI), or the module form:

zephyr_scale_test_cycle --test-cycle-id R123 --testcase-id T456 --status Pass
zephyr-scale-cycle-update --test-cycle-id R123 --testcase-id T456 --status Pass
python -m zephyr_scale_test_cycle --test-cycle-id R123 --testcase-id T456 --status Pass

Common options:

  • --version — Print the program version and exit.
  • --project-key — Jira project key when ids are short (default: ZEPHYR_PROJECT_KEY env).
  • --duration — Execution duration in seconds.
  • --comment — Execution comment.
  • --environment — Optional environmentName for Zephyr.
  • --no-create-execution — Do not POST a new execution if the testcase is missing from the cycle.

Environment variables

Variable Required Description
ZEPHYR_SCALE_TOKEN Yes (for API calls) Zephyr Scale Cloud API bearer token. If unset or empty, requests run without a valid token and the API will fail.
ZEPHYR_PROJECT_KEY When using short cycle ids Jira / project key (e.g. PROJ). Needed when --test-cycle-id is only the numeric part (e.g. R123) instead of a full key like PROJ-R123. Same as passing --project-key.
ZEPHYR_SCALE_BASE_URL No API root URL. Default: https://api.zephyrscale.smartbear.com/v2. Override for custom endpoints or testing.

Example:

export ZEPHYR_SCALE_TOKEN="your-api-token"
export ZEPHYR_PROJECT_KEY="PROJ"
zephyr-scale-cycle-update --test-cycle-id R123 --testcase-id T456 --status Pass

Library

from zephyr_scale_test_cycle import update_test_execution, get_execution_keys

ok = update_test_execution(
    test_cycle_id="PROJ-R123",
    testcase_id="PROJ-T456",
    status="Pass",
)

License

Proprietary — see LICENSE.

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

zephyr_scale_test_cycle-0.1.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

zephyr_scale_test_cycle-0.1.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file zephyr_scale_test_cycle-0.1.2.tar.gz.

File metadata

  • Download URL: zephyr_scale_test_cycle-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for zephyr_scale_test_cycle-0.1.2.tar.gz
Algorithm Hash digest
SHA256 409b2570b0e38f5314e76e59b8e4192bec1e83337af06b13b85f164d16305da5
MD5 bb0d94f62ca29964bf67d297c34d5aa5
BLAKE2b-256 4827ca37ac57b0068e372826c459bcac6c0b251e6e8a97da9376c4fd9cad4c02

See more details on using hashes here.

File details

Details for the file zephyr_scale_test_cycle-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for zephyr_scale_test_cycle-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a428d2f2d2c9232b27e804a6190471163651f8b4a6f7d6cdbd1ea6e3e1f48fa
MD5 d3a97a7cfa85a464e1cbc4f2f460302a
BLAKE2b-256 6405eaf699c61665bbeb84138870be91f13b70464f32024d752589ea0601372a

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