lczub / TestLink-API-Python-client

A Python client to use the TestLink API
104 stars 63 forks source link

Run TestLinkExample.py display "problems calling the API method setTestCaseTestSuite" #106

Closed reynold6215 closed 6 years ago

reynold6215 commented 6 years ago

error.log

My TestLink version 1.9.14

Cannot work move test case TC_B to correct test suite B function Code: tc_b_full_ext_id = myTestLink.getTestCase(newTestCaseID_B)[0]['full_tc_external_id'] response = myTestLink.setTestCaseTestSuite(tc_b_full_ext_id, newTestSuiteID_B) print("setTestCaseTestSuite TC-B to TS-B" , response)

Display Error message: New Test Case 'TESTCASE_B' - id: 853 Traceback (most recent call last): File "example/TestLinkExample.py", line 287, in response = myTestLink.setTestCaseTestSuite(tc_b_full_ext_id, newTestSuiteID_B) File "/root/.pyenv/versions/testlink-env1/lib/python2.7/site-packages/testlink/testlinkdecorators.py", line 112, in wrapperAddDevKey return methodAPI(self, *argsPositional, *argsOptional) File "/root/.pyenv/versions/testlink-env1/lib/python2.7/site-packages/testlink/testlinkdecorators.py", line 100, in wrapperWithArgs argsPositional, argsOptional) File "/root/.pyenv/versions/testlink-env1/lib/python2.7/site-packages/testlink/testlinkapigeneric.py", line 1517, in callServerWithPosArgs response = self._callServer(methodNameAPI, argsOptional) File "/root/.pyenv/versions/testlink-env1/lib/python2.7/site-packages/testlink/testlinkapigeneric.py", line 2000, in _callServer raise testlinkerrors.TLAPIError(new_msg) testlink.testlinkerrors.TLAPIError: problems calling the API method setTestCaseTestSuite <Fault -32601: 'server error. requested method tl.setTestCaseTestSuite does not exist.'>** (testlink-env1) root@TestLink-Auto:~/test1#

lczub commented 6 years ago

Hello reynold6215,

the API method setTestCaseTestSuite is only available with a TestLink server version 1.9.17 - see CHANGES.rst v0.8.0.

The latest Testlink client version, supporting your TestLink server version 1.9.14 is TestLink-API-Python-client v0.6.2.

Hope, this helps. Regards Luiko

reynold6215 commented 6 years ago

Hi Luiko

Thank your help. After evaluation, I will upgrade the version of testlink v1.9.17 and try the sample program again. Because the new testlink interface and features are better.

Reynold