Closed ghost closed 7 years ago
Hello parraline,
thanks for the hint. I will try to check this at the end of this week
Regards Luiko
Hello parraline,
I found the reason for your problem. The TestLink server changed the response type of getTestCaseKeywords from 1.9.13 to 1.9.14 and the client was adapted with 0.6.2
Your TestLink server version is 1.9.13, so you have to use the TestLink-API-Python-client 0.6.1 for compatible keyword handling or update your server to 1.9.14 / 1.9.15.
With TestLink Server 1.9.15 and TestLink-API-Python-client 0.6.3 the response looks like:
>>> myTestLink.listKeywordsForTC('NPROAPI34-1')
['KeyWord02']
>>> myTestLink.getTestCaseKeywords(testcaseexternalid='NPROAPI34-1')
{'NPROAPI34-1': {'38': 'KeyWord02'}}
Hope this helps a little bit.
Regards Luiko
No further user comments
TestLink: 1.9.13 TestLink-API-Python-client: 0.6.3
Comments in code indicate that:
getTestCaseKeywords returns a dictionary like
But in practice, that does not seem to be the case: In [32]: tlc = testlink.TestlinkAPIClient(, )
In [33]: tlc.getTestCaseKeywords(testcaseexternalid='SMF-288') Out[33]: {'42': 'KeywordTest1', '43': 'KeywordTest2', '44': 'KeywordTest3'}
In [34]: tlc.getTestCaseKeywords(testcaseexternalid='SMF-309') Out[34]: {'42': 'KeywordTest1'}
In [35]: tlc.listKeywordsForTC('SMF-309')
KeyError Traceback (most recent call last)