Skip to main content

This package consists of a high-level Python module (provides natural object interface), a low-level driver (allows to directly access Kiwi’s xmlrpc API) and a command line interpreter (useful for fast debugging and experimenting).

FEATURES

Among the most essential features are:

  • Natural and concise Python interface

  • Custom level of caching & logging

  • Integrated test suite

  • Utility functions

The main motivation was to hide unnecessary implementation details wherever possible so that using the API is as concise as possible.

Scripts importing tcms_api can make use of several useful helper functions including info() for printing to stderr, listed() which converts list into nice human readable form and of course log.{debug,info,warn,error} for logging.

EXAMPLES

Initialize or create an object:

testcase = TestCase(1234)
testrun = TestRun(testplan=<plan>, summary=<summary>)

Default iterators provided for all container objects:

for case in TestRun(1234):
    if case.automated:
        case.status = TestCaseRunStatus("RUNNING")
        case.update()

Linking case to a plan is as simple as adding an item to a set:

testplan.testcases.add(testcase)
testplan.update()

However, it’s still possible to use the low-level driver when a specific features is not implemented yet or not efficient enough:

case = TCMS()._server.TestCase.filter({'pk': 46490})[0]

For a quick start you can get some inspiration in the script_examples directory. The ‘matrix.py’ script demonstrates how to easily display a matrix view of the test run results for a specific test plan. The ‘create.py’ script gives a broader overview covering object creation, attribute setting, adjusting logs and caching.

For area-specific details see respective module documentation:

tcms_api.base ......... TCMS class, search support
tcms_api.config ....... Configuration, logging, caching
tcms_api.containers ... Container classes implementation
tcms_api.immutable .... Immutable TCMS objects
tcms_api.mutable ...... Mutable TCMS objects
tcms_api.tests ........ Test suite
tcms_api.utils ........ Utilities
tcms_api.xmlrpc ....... XMLRPC driver

INSTALLATION

pip install tcms-api

CONFIGURATION

To be able to contact the Kiwi TCMS server a minimal user config file ~/.tcms.conf has to be provided in the user home directory:

[tcms]
url = https://kiwi.server/xml-rpc/
username = myusername
password = mypassword

AUTHORS

High-level Python module: Petr Šplíchal, Zbyšek Mráz, Martin Kyral, Lukáš Zachar, Filip Holec, Aleš Zelinka, Miroslav Vadkerti, Leoš Pol and Iveta Wiedermann.

Low-level XMLRPC driver: Airald Hapairai, David Malcolm, Will Woods, Bill Peck, Chenxiong Qi, Tang Chaobin, Yuguang Wang and Xuqing Kuang.

As of November 2017 this module has been merged with Kiwi TCMS, an independent fork of the original Nitrate project. The codebase in this repository is developed independently of the original and may not be backwards compatible!

Metadata

Release files for tcms-api 4.2

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

Source distribution (sdist)

Source distribution for tcms-api 4.2
File Size Uploaded Provenance Actions
tcms-api-4.2.tar.gz 35.8 kB Without provenance Details for tcms-api-4.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tcms-api 4.2
File Interpreter ABI Platform Actions
tcms_api-4.2-py3-none-any.whl Python 3 none any Details for tcms_api-4.2-py3-none-any.whl

Total release size: 78.6 kB

Release files / tcms-api-4.2.tar.gz

Download URL tcms-api-4.2.tar.gz
Size 35.8 kB
Tags Source
SHA-256 checksum
How to use checksums
29e69c9890500a6353d7be3a0d5d766d2096a5c6e5b691d3d0883f88c009e67b
BLAKE2b-256 checksum
How to use checksums
33cdada82c00168aeeddd0c396c2a3ccb9f7a7862db881c96429c7853eb4471a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / tcms_api-4.2-py3-none-any.whl

Download URL tcms_api-4.2-py3-none-any.whl
Size 42.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ff033cfbabebd091f7b809b6d84ba2b71bb30ad500998ec3d749f64885d1658
BLAKE2b-256 checksum
How to use checksums
0f8b1a07bc2ff2a3d0353e1834353ff0a0d44c14eeda736c21b710c242ac0b73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for tcms-api 4.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.2 This release

2 release files No provenance

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