Skip to main content

Polarion client for Python

Project description

python-polarion

Build status Coverage Test Documentation Status Downloads

This package allows access to a Polarion server.

Installation

pip install polarion

Getting started

Creating the Polarion client and getting workitems, test runs or plans:

from polarion import polarion
client = polarion.Polarion('http://example.com/polarion', 'user', 'password')
project = client.getProject('Python')
workitem = project.getWorkitem('PYTH-510')
run = project.getTestRun('SWQ-0001')
plan = project.getPlan('00002')

Modifying workitems:

workitem.setDescription('Some description..')
workitem.addComment('test comment', 'sent from Python')
workitem.addHyperlink('google.com', workitem.HyperlinkRoles.EXTERNAL_REF)

Or test run results:

run = project.getTestRun('SWQ-0001')
run.records[0].setResult(record.Record.ResultType.PASSED, ' Comment with test result')

Adding workitems to a plan:

plan.addToPlan(workitem)
plan.removeFromPlan(workitem)

More examples to be found in the quick start section of the documentation. Go to the documentation

Known issues or missing features

  • No way of knowing the test run possible statuses.

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

polarion-0.3.1.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

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

polarion-0.3.1-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

Details for the file polarion-0.3.1.tar.gz.

File metadata

  • Download URL: polarion-0.3.1.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for polarion-0.3.1.tar.gz
Algorithm Hash digest
SHA256 427b33d6c4931fafa198d5ff42bd822026a4ca0aff2751963bbd7e9ed4a41f61
MD5 9d5bbd7f3c9e34006011aff63c4449b1
BLAKE2b-256 76dac0b75ac8924ba7ce754e09d01ed493036ba46291a4537f030f2fdb6881a4

See more details on using hashes here.

File details

Details for the file polarion-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: polarion-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 34.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for polarion-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 959307bb551a21173e2ce1b10bcf1dda87d8dec656a7bf6b737d761cdb495622
MD5 3936ba2e844866efa72e14646d05fdfe
BLAKE2b-256 afd0d2e41034710e4f622b8ff007436b75347cca2fb5700cc67e459db3c5f7ee

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