-
Notifications
You must be signed in to change notification settings - Fork 64
Description
TestLink: 1.9.13
TestLink-API-Python-client: 0.6.3
Comments in code indicate that:
getTestCaseKeywords returns a dictionary like
# {'12622': {'34': 'KeyWord01', '36': 'KeyWord03'}}
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)
in ()
----> 1 tlc.listKeywordsForTC('SMF-309')
/home/dhaak/.virtualenvs/garg27/local/lib/python2.7/site-packages/testlink/testlinkapi.pyc in listKeywordsForTC(self, internal_or_external_tc_id)
341 # key is the testcaseid, why that? cause it is possible to ask for
342 # a set of test cases. we are just interested in one tc
--> 343 a_keyword_dic = self.getTestCaseKeywords(testcaseid=a_tc_id )[a_tc_id]
344 keywords = a_keyword_dic.values()
345
KeyError: 414419
In [36]: tlc.listKeywordsForTC('SMF-288')
KeyError Traceback (most recent call last)
in ()
----> 1 tlc.listKeywordsForTC('SMF-288')
/home/dhaak/.virtualenvs/garg27/local/lib/python2.7/site-packages/testlink/testlinkapi.pyc in listKeywordsForTC(self, internal_or_external_tc_id)
341 # key is the testcaseid, why that? cause it is possible to ask for
342 # a set of test cases. we are just interested in one tc
--> 343 a_keyword_dic = self.getTestCaseKeywords(testcaseid=a_tc_id )[a_tc_id]
344 keywords = a_keyword_dic.values()
345
KeyError: 412640