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.0.tar.gz (25.3 kB view hashes)

Uploaded Source

Built Distribution

polarion-0.3.0-py3-none-any.whl (34.2 kB view hashes)

Uploaded Python 3

Supported by

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