getTestCaseIdByName returns large number of instances

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
kcurran
Advanced user
Posts: 16
Joined: Fri Jan 23, 2009 4:05 pm

getTestCaseIdByName returns large number of instances

Post by kcurran »

Using 1.8rc4 api

When I look at the response to a getTestCaseIdByName, I see 8000 plus instances of the testcase, all with a different external id. This doesn't make seen to me. Why would there be so many external ids associated with a test case I just created yesterday
kcurran
Advanced user
Posts: 16
Joined: Fri Jan 23, 2009 4:05 pm

Post by kcurran »

When I run the same mysql as in testcase.class.php for get_by_name,
I am returned 8135 entries from the query

Here is the sample of the sql, I used

mysql> select distinct NHA.id,NHA.name,NHB.parent_id,TCV.tc_external_id from nodes_hierarchy NHA, nodes_hierarchy NHB, tcversions TCV where NHA.name = 'Relay loops' and NHA.parent_id=NHB.id;

I get the same result for all test cases that I tried.

This is consistent with the result I am seeing from the xmlrpc call.

This seems wrong, it's almost like I'm getting all possible entries from externalid=1..8135
fman
Member of TestLink Community
Posts: 3108
Joined: Tue Nov 15, 2005 7:19 am

Post by fman »

please pot issue on mantis with detailed steps to reproduce.
may be a zipped dump of you db.
or you can send me the dump to francisco.mancardi@gmail.com
Post Reply