diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-testlink-api-python-client.spec | 201 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 203 insertions, 0 deletions
@@ -0,0 +1 @@ +/TestLink-API-Python-client-0.8.1.tar.gz diff --git a/python-testlink-api-python-client.spec b/python-testlink-api-python-client.spec new file mode 100644 index 0000000..5beb0c4 --- /dev/null +++ b/python-testlink-api-python-client.spec @@ -0,0 +1,201 @@ +%global _empty_manifest_terminate_build 0 +Name: python-TestLink-API-Python-client +Version: 0.8.1 +Release: 1 +Summary: Python XML-RPC client for TestLink DEV 1.9.20 (github a1c7aca97) +License: Apache 2.0 +URL: https://github.com/lczub/TestLink-API-Python-client +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/1b/f9bd486e85c93ec033abd21daa040e90683fcdf0e9e27206d4666225a4cf/TestLink-API-Python-client-0.8.1.tar.gz +BuildArch: noarch + + +%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_ + +.. _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 + + +%package -n python3-TestLink-API-Python-client +Summary: Python XML-RPC client for TestLink DEV 1.9.20 (github a1c7aca97) +Provides: python-TestLink-API-Python-client +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-TestLink-API-Python-client +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 + + +%package help +Summary: Development documents and examples for TestLink-API-Python-client +Provides: python3-TestLink-API-Python-client-doc +%description help +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 + + +%prep +%autosetup -n TestLink-API-Python-client-0.8.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-TestLink-API-Python-client -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.1-1 +- Package Spec generated @@ -0,0 +1 @@ +5f646db2f420da3bdc3cd9bd600b59db TestLink-API-Python-client-0.8.1.tar.gz |
