Skip to content

example usage xmlrpc bug - not working for python3.10.11 #163

Description

@Fermi-4

Run into error when following the usage docs:

Ran these in shell (with actual params):

set TESTLINK_API_PYTHON_DEVKEY=[Users devKey generated by TestLink]
set TESTLINK_API_PYTHON_SERVER_URL=http://<url>/testlink/lib/api/xmlrpc.php

and getTestCase gives this error:

TypeError: ProxiedTransport.send_request() takes 4 positional arguments but 5 were given

Log:

tls.getTestCase(None, testcaseexternalid='gh-123')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/fermi4/.local/share/hatch/env/virtual/opentest-automation/gQ7p0kJt/opentest-automation/lib/python3.10/site-packages/testlink/testlinkdecorators.py", line 112, in wrapperAddDevKey
    return methodAPI(self, *argsPositional, **argsOptional)
  File "/home/fermi4/.local/share/hatch/env/virtual/opentest-automation/gQ7p0kJt/opentest-automation/lib/python3.10/site-packages/testlink/testlinkdecorators.py", line 99, in wrapperWithArgs
    return self.callServerWithPosArgs(methodAPI.__name__, 
  File "/home/fermi4/.local/share/hatch/env/virtual/opentest-automation/gQ7p0kJt/opentest-automation/lib/python3.10/site-packages/testlink/testlinkapigeneric.py", line 1582, in callServerWithPosArgs
    response = self._callServer(methodNameAPI, argsOptional)
  File "/home/fermi4/.local/share/hatch/env/virtual/opentest-automation/gQ7p0kJt/opentest-automation/lib/python3.10/site-packages/testlink/testlinkapigeneric.py", line 2057, in _callServer
    response = getattr(self.server.tl, methodNameAPI)(argsAPI)
  File "/usr/local/lib/python3.10/xmlrpc/client.py", line 1122, in __call__
    return self.__send(self.__name, args)
  File "/usr/local/lib/python3.10/xmlrpc/client.py", line 1464, in __request
    response = self.__transport.request(
  File "/usr/local/lib/python3.10/xmlrpc/client.py", line 1166, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/local/lib/python3.10/xmlrpc/client.py", line 1178, in single_request
    http_conn = self.send_request(host, handler, request_body, verbose)
TypeError: ProxiedTransport.send_request() takes 4 positional arguments but 5 were given
>>> tls.getTestCase(None, testcaseexternalid='gh-123')

Python version:

Python 3.10.11 (main, Jul 11 2023, 22:22:36) [GCC 11.1.0] on linux

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions