Python client library for interacting with TestLodge.
Project description
Description
Python client library for interacting with TestLodge.
Installation
pip install testlodge
Usage
import os
from testlodge import Client
tl = Client(
email='my.email@email.com',
api_key=os.environ['TESTLODGE_API_KEY'],
account_id=os.environ['TESTLODGE_ACCOUNT_ID'],
)
Users
from testlodge import UserJSON
user_json: UserJSON = dict(
id=123456,
firstname='First',
lastname='Last',
email='user@email.com',
created_at="2022-01-01T20:30:40.123456Z",
updated_at="2022-05-16T01:08:41.493190Z",
)
Requirement Documents
from testlodge import RequirementDocumentJSON
requirement_document_json: RequirementDocumentJSON = dict(
id=123456,
title='title',
should_version: True,
project_id=234567,
created_at="2022-01-01T20:30:40.123456Z",
updated_at="2022-05-16T01:08:41.493190Z",
)
Suite
from testlodge import SuiteJSON
suite_json: SuiteJSON = dict(
id=123456,
name='suite',
plan_id=None,
project_id=234567,
created_at="2022-01-01T20:30:40.123456Z",
updated_at="2022-05-16T01:08:41.493190Z",
)
Suite Section
from testlodge import SuiteSectionJSON
suite_section_json: SuiteSectionJSON = dict(
id=123456,
title='title',
suite_id=234567,
created_at="2022-01-01T20:30:40.123456Z",
updated_at="2022-05-16T01:08:41.493190Z",
)
API
import os
from testlodge import Client
from testlodge import SuiteSectionListJSON
tl = Client(
email='my.email@email.com',
api_key=os.environ['TESTLODGE_API_KEY'],
account_id=os.environ['TESTLODGE_ACCOUNT_ID'],
)
suite_section_json: SuiteSectionListJSON = tl.api.suite_section._list(
project_id=123456,
suite_id=234567,
)
Case
from testlodge import CaseJSON
case_json: CaseJSON = dict(
id=123456,
project_id=234567,
suite_section_id=345678,
position=1,
last_saved_by_id=456789,
last_saved_by=user_json,
created_at="2022-01-01T20:30:40.123456Z",
updated_at="2022-05-16T01:08:41.493190Z",
custom_fields=[],
requirements=[],
step_number='TC123',
title='test case 1',
description=None,
test_steps=None,
expected_result=None,
)
API
import os
from testlodge import Client
from testlodge import CaseJSON
tl = Client(
email='my.email@email.com',
api_key=os.environ['TESTLODGE_API_KEY'],
account_id=os.environ['TESTLODGE_ACCOUNT_ID'],
)
case_json: CaseJSON = tl.api.case._show(
project_id=123456,
suite_id=234567,
case_id=345678,
)
Custom Field
from testlodge import CustomFieldJSON
custom_field_json: CustomFieldJSON = dict(
id=123456,
name='cf_1',
value='my_value'),
)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
testlodge-0.0.29.tar.gz
(10.9 kB
view hashes)
Built Distribution
testlodge-0.0.29-py3-none-any.whl
(24.2 kB
view hashes)
Close
Hashes for testlodge-0.0.29-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1304499c6a59e06b9c42616bc4bb8aa685be9b5f7fa3688bcaf8220ca0c0566f |
|
MD5 | b38da5aa06a1f72f1db4397f68abb70d |
|
BLAKE2b-256 | d0d6e07f3ecdf59da0af39b183b6803dcf74d9a77057dd7ffb1d3613ebf544dd |