Python XML-RPC client for TestLink 1.9.20-fixed_c88e348ce
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
Built Distribution
Hashes for TestLink-ApiCustomizedClient-0.8.2.dev141.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c7a0f32c19a0a3285746c31278d70eccfa72f0f71df357877234ff5e697941c |
|
MD5 | 7f791e3552d76da97135b1eb84e4e7d1 |
|
BLAKE2b-256 | 86997594e562741bce90afa7e9672951ebb4a37faf72f76036b91142c8de5abf |
Hashes for TestLink_ApiCustomizedClient-0.8.2.dev141-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61c8739bae26116ef14e47269bfd7eb2ce51081a21920785299899b262fb9bbd |
|
MD5 | 81bee3d5df5ae0ee1e1ba542753c7c83 |
|
BLAKE2b-256 | 558e345a33d92b09776d034eb77811f18ee8bfa0f24c21a81ac266a9e5dc1981 |