Page 1 of 1

tl_1.8.5b reportTCResult() update wrong version

Posted: Fri Feb 04, 2011 1:58 am
by akang
Hi,

I noticed reportTCResult() update status to version 1, not the actual version assigned to test plan.
Does anyone notice this problem?

Here is the scenario:

A test cases named "Open System" with version 2 [tc_id is 449] is assigned to test_project:"Open Project", test_plan:"Open Environment".
With the data = {'devKey':'My-TL-Key', 'testplanid':301, 'status':'p', 'testcaseid':449, 'buildid':47} sent to TL xmlrpc.php, the result's message is 'Success', status is True.

However, when I check the result with GUI (using Test result matrix), I notice the result being updated is version 1, not version 2.

Can anyone using this feature comment on this?

Thanks,
akang

Re: tl_1.8.5b reportTCResult() update wrong version

Posted: Fri Feb 04, 2011 8:39 am
by fman
This is an issue on a not supported anymore version => upgrade to 1.9.1

thanks...

Posted: Sat Feb 05, 2011 10:18 pm
by Zippie35
thanks, that helped me a lot!
regards,
chantal

Re: tl_1.8.5b reportTCResult() update wrong version

Posted: Sun Feb 06, 2011 8:12 pm
by akang
[1] Testlink is in production; not going to move to 1.9.1 anytime soon.
[2] I check the 1.9.1 function reportTCResult(), do not see it call checkTestCaseVersionNumber().
Is it the function reportTCResult() should call to retrieve the correct tcversion_number?

Thanks,
akang

Re: tl_1.8.5b reportTCResult() update wrong version

Posted: Tue Feb 08, 2011 1:31 am
by akang
tc's version should be retrieved from function _checkTCIDAndTPIDValid() and passed to _insertResultToDB().
However, 1.8.5b does not support overwrite function. insertResultToDB() is the only method.