Python XML-RPC client for TestLink 1.9.12
Project description
TestLink-API-Python-client is a Python XML-RPC client for TestLink.
Initially based on James Stock testlink-api-python-client R7 and Olivier Renault JinFeng idea - an interaction of TestLink, Robot Framework and Jenkins.
TestLink-API-Python-client delivers two main classes
TestlinkAPIGeneric - Implements the TestLink API methods as generic PY methods with error handling
TestlinkAPIClient - Inherits from TestlinkAPIGeneric and defines service methods like “copyTCnewVersion”.
and the helper class
TestLinkHelper - search connection parameter from environment variables and command line arguments
How to talk with TestLink in a python shell and copy a test case:
set TESTLINK_API_PYTHON_SERVER_URL=http://[YOURSERVER]/testlink/lib/api/xmlrpc/v1/xmlrpc.php set TESTLINK_API_PYTHON_DEVKEY=[Users devKey generated by TestLink] python >>> import testlink >>> tls = testlink.TestLinkHelper().connect(testlink.TestlinkAPIClient) >>> tls.countProjects() 3 >>> tc_info = tls.getTestCase(None, testcaseexternalid='NPROAPI-3') [{'full_tc_external_id': 'NPROAPI-3', ..., 'id': '5440', 'version': '2', 'testsuite_id': '5415', 'tc_external_id': '3','testcase_id': '5425', ...}] >>> tls.copyTCnewTestCase(tc_info[0]['testcase_id'], testsuiteid=newSuiteID, testcasename='a new test case name') >>> print tls.whatArgs('createTestPlan') createTestPlan(<testplanname>, <testprojectname>, [note=<note>], [active=<active>], [public=<public>], [devKey=<devKey>]) create a test plan
More information about this library can be found on the Wiki
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
File details
Details for the file TestLink-API-Python-client-0.6.0.zip
.
File metadata
- Download URL: TestLink-API-Python-client-0.6.0.zip
- Upload date:
- Size: 94.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7898ebe8f326a33868b38ad8ed234a088edab13065355985c292b47296a6b8dd |
|
MD5 | 69e1b86cff6ef590b249b0364df8fa03 |
|
BLAKE2b-256 | da1e2a4a169f60c3a84e8f3a436d75ac631b654b9edd48dd09ca5cba1845b0b8 |