Page 1 of 1

getTestCaseIdByName returns large number of instances

PostPosted: Wed Feb 18, 2009 5:36 pm
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

PostPosted: Wed Feb 18, 2009 9:45 pm
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

PostPosted: Thu Feb 19, 2009 7:28 am
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