getTestCaseIdByName returns large number of instances

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

getTestCaseIdByName returns large number of instances

Postby kcurran » Wed Feb 18, 2009 5:36 pm

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

Postby kcurran » Wed Feb 18, 2009 9:45 pm

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
kcurran
Advanced user
 
Posts: 16
Joined: Fri Jan 23, 2009 4:05 pm

Postby fman » Thu Feb 19, 2009 7:28 am

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
fman
Member of TestLink Community
 
Posts: 3050
Joined: Tue Nov 15, 2005 7:19 am


Return to XML-RPC API



Who is online

Users browsing this forum: No registered users and 0 guests