testlink-api-client
XML-RPC Client For TestLink
Installation
#!/bin/bash
pip install TestlinkApiCLient
Example
#!/usr/bin/env python
from TestlinkApiClient.xmlrpc import TestlinkClient
# Connect Testlink
testlink = TestlinkClient(url='Testlink Access Url', user='Testlink Username', dev_key='Personal Api Key')
# List Project
testlink.list_project()
Function List
- Project Operations
testlink.list_project()
testlink.create_project(project_name='Project Name')
testlink.create_project(project_name='Project Name', prefix='Prefix')
testlink.delete_project(project_name='Project Name')
- Plan Operations
testlink.list_plan(project_name='Project Name')
- Suite Operations
testlink.list_suite(project_name='Project Name')
testlink.list_suite(project_name='Project Name', suite_name='Suite Name')
testlink.get_suite(project_name='Project Name', suite_name='Suite Name')
testlink.create_suite(project_name='Project Name', suite_name='Suite Name')
testlink.create_suite(project_name='Project Name', suite_name='Suite Name', parent_suite_name='Parent Suite Name')
- Case Operations
testlink.get_case(project_name='Project Name', case_ext_id='Test Case External ID')
testlink.create_case(project_name='Project Name', suite_name='Suite Name', case_name='Test Case Title')
testlink.create_case(project_name='Project Name', suite_name='Suite Name', case_name='Test Case Title', summary='Test Case Summary', steps='Test Case Steps')
testlink.update_step(case_ext_id='Test Case External ID', steps='Test Case Steps')
testlink.set_execution_result(project_name='Project Name', plan_name='Plan Name', build_name='Build Name',
case_ext_id='Test Case External ID', case_exe_result='Execition Result')
testlink.set_execution_result(project_name='Project Name', plan_name='Plan Name', build_name='Build Name',
case_ext_id='Test Case External ID', case_exe_result='Execution Result',
notes='Execution Log or Notes')
testlink.get_last_execution_result(project_name='Project Name', plan_name='Plan Name', case_ext_id='Test Case External ID')
Parameters Description
- Test Case Steps
Steps is a list, every step format could find from testlink.step_template
- Execution Result
PASS: p, pass, passed
FAIL: f, fail, failed
BLOCK: b, block, blocked
Rest Client For TestLink
In The Future
Release files for TestlinkApiClient 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| TestlinkApiClient-0.1.7.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| TestlinkApiClient-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / TestlinkApiClient-0.1.7.tar.gz
| Download URL | TestlinkApiClient-0.1.7.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
38c03252ee11515709a3133dabc802c87f282ffc572b760a5a0d55e8d476c387
|
|
BLAKE2b-256 checksum How to use checksums |
559a0596b6686a6ff05a3e8d9be84620a828eb37f9e2db350bd8f839fdc4f0b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.1.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.0
|
Release files / TestlinkApiClient-0.1.7-py3-none-any.whl
| Download URL | TestlinkApiClient-0.1.7-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5afcb46da916ca8c3ae9ab555577976c62ecea26a35606167423f200137cbcb6
|
|
BLAKE2b-256 checksum How to use checksums |
bfa6ed7098b0547341678c992a5556dc4f2e1b17c3ee0d49e314caf2f67571de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.1.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.0
|