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_
.. _TestLink: http://testlink.org
.. _JinFeng: http://www.sqaopen.net/blog/en/?p=63
.. _Robot Framework: http://code.google.com/p/robotframework
.. _Jenkins: http://jenkins-ci.org
.. _Wiki: https://github.com/lczub/TestLink-API-Python-client/wiki
Raw data
{
"_id": null,
"home_page": "https://github.com/lczub/TestLink-API-Python-client",
"name": "TestLink-API-Python-client-fix",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "testing,testlink,xml-rpc,testautomation",
"author": "James Stock, Olivier Renault, Luiko Czub, TestLink-API-Python-client developers",
"author_email": "orenault@gmail.com, Luiko.Czub@Liegkat-Archiv.de",
"download_url": "https://files.pythonhosted.org/packages/0c/03/7f27c91e46fa05da5c4d13fbbf3c0c277ef9a13d7576b0c8c4260da8cc57/TestLink-API-Python-client-fix-0.8.2-dev141.tar.gz",
"platform": "any",
"description": "TestLink-API-Python-client is a Python XML-RPC client for TestLink_.\n\nInitially based on James Stock testlink-api-python-client R7 and Olivier \nRenault JinFeng_ idea - an interaction of TestLink_, `Robot Framework`_ and Jenkins_.\n\nTestLink-API-Python-client delivers two main classes\n\n- TestlinkAPIGeneric - Implements the TestLink API methods as generic PY methods\n with error handling\n- TestlinkAPIClient - Inherits from TestlinkAPIGeneric and defines service \n methods like \"copyTCnewVersion\".\n\nand the helper class\n\n- TestLinkHelper - search connection parameter from environment variables and \n command line arguments\n \nHow to talk with TestLink in a python shell and copy a test case: ::\n\n set TESTLINK_API_PYTHON_SERVER_URL=http://[YOURSERVER]/testlink/lib/api/xmlrpc/v1/xmlrpc.php\n set TESTLINK_API_PYTHON_DEVKEY=[Users devKey generated by TestLink]\n python\n >>> import testlink\n >>> tls = testlink.TestLinkHelper().connect(testlink.TestlinkAPIClient)\n >>> tls.countProjects()\n 3\n >>> tc_info = tls.getTestCase(None, testcaseexternalid='NPROAPI-3')\n [{'full_tc_external_id': 'NPROAPI-3', ..., 'id': '5440', 'version': '2', \n 'testsuite_id': '5415', 'tc_external_id': '3','testcase_id': '5425', ...}]\n >>> tls.copyTCnewTestCase(tc_info[0]['testcase_id'], testsuiteid=newSuiteID, \n testcasename='a new test case name')\n >>> print tls.whatArgs('createTestPlan')\n createTestPlan(<testplanname>, <testprojectname>, [note=<note>], [active=<active>], \n [public=<public>], [devKey=<devKey>])\n create a test plan \n\nMore information about this library can be found on the Wiki_ \n\n.. _TestLink: http://testlink.org\n.. _JinFeng: http://www.sqaopen.net/blog/en/?p=63\n.. _Robot Framework: http://code.google.com/p/robotframework\n.. _Jenkins: http://jenkins-ci.org\n.. _Wiki: https://github.com/lczub/TestLink-API-Python-client/wiki\n",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "Python XML-RPC client for TestLink 1.9.20-fixed_c88e348ce",
"version": "0.8.2.dev141",
"split_keywords": [
"testing",
"testlink",
"xml-rpc",
"testautomation"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "4211248334b21bec1169b9dfcef78458b361e3bf484fc6503cdb0b6ff708cdc8",
"md5": "a65d78f0cf7970019f6534f2ed23573a",
"sha256": "321b1d9850a85c23a1505fa56a38684c043e91ce344302e23ada7555183ff838"
},
"downloads": -1,
"filename": "TestLink_API_Python_client_fix-0.8.2.dev141-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a65d78f0cf7970019f6534f2ed23573a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 45658,
"upload_time": "2023-04-03T10:04:02",
"upload_time_iso_8601": "2023-04-03T10:04:02.304723Z",
"url": "https://files.pythonhosted.org/packages/42/11/248334b21bec1169b9dfcef78458b361e3bf484fc6503cdb0b6ff708cdc8/TestLink_API_Python_client_fix-0.8.2.dev141-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0c037f27c91e46fa05da5c4d13fbbf3c0c277ef9a13d7576b0c8c4260da8cc57",
"md5": "66bdb03c5560e365c12adf339912c679",
"sha256": "5d15e5c20a01214c142f4782e3a3cc5dcebd36a515da424f069bce47e4ace730"
},
"downloads": -1,
"filename": "TestLink-API-Python-client-fix-0.8.2-dev141.tar.gz",
"has_sig": false,
"md5_digest": "66bdb03c5560e365c12adf339912c679",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 97227,
"upload_time": "2023-04-03T10:04:05",
"upload_time_iso_8601": "2023-04-03T10:04:05.335321Z",
"url": "https://files.pythonhosted.org/packages/0c/03/7f27c91e46fa05da5c4d13fbbf3c0c277ef9a13d7576b0c8c4260da8cc57/TestLink-API-Python-client-fix-0.8.2-dev141.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-03 10:04:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "lczub",
"github_project": "TestLink-API-Python-client",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"tox": true,
"lcname": "testlink-api-python-client-fix"
}