-
Notifications
You must be signed in to change notification settings - Fork 64
Description
While using testlink api for getting the test cases based on testplan, for testplans with fewer testcases it works fine but for the testplan with many testcases the same api is not working .
I am executing the following lines to get the testcases of the testplan
from testlink import TestlinkAPIClient, TestLinkHelper, TestGenReporter, TestlinkAPIGeneric
tl_helper = TestLinkHelper()
myTestLink = tl_helper.connect(TestlinkAPIGeneric)
mytestlink.getTestCasesForTestplan(plan_id)
and the error i am getting is as follows
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.6/site-packages/testlink/testlinkdecorators.py", line 140, in wrapperReplaceTLResponseError
response = methodAPI(self, *argsPositional, **argsOptional)
File "/usr/local/lib/python3.6/site-packages/testlink/testlinkdecorators.py", line 112, in wrapperAddDevKey
return methodAPI(self, *argsPositional, **argsOptional)
File "/usr/local/lib/python3.6/site-packages/testlink/testlinkdecorators.py", line 100, in wrapperWithArgs
*argsPositional, **argsOptional)
File "/usr/local/lib/python3.6/site-packages/testlink/testlinkapigeneric.py", line 1582, in callServerWithPosArgs
response = self._callServer(methodNameAPI, argsOptional)
File "/usr/local/lib/python3.6/site-packages/testlink/testlinkapigeneric.py", line 2057, in _callServer
response = getattr(self.server.tl, methodNameAPI)(argsAPI)
File "/usr/lib64/python3.6/xmlrpc/client.py", line 1112, in call
return self.__send(self.__name, args)
File "/usr/lib64/python3.6/xmlrpc/client.py", line 1452, in __request
verbose=self.__verbose
File "/usr/lib64/python3.6/xmlrpc/client.py", line 1154, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib64/python3.6/xmlrpc/client.py", line 1170, in single_request
return self.parse_response(resp)
File "/usr/lib64/python3.6/xmlrpc/client.py", line 1340, in parse_response
p.close()
File "/usr/lib64/python3.6/xmlrpc/client.py", line 448, in close
parser.Parse(b"", True) # end of data
xml.parsers.expat.ExpatError: unclosed token: line 218149, column 0
what night be the reason ?