tl_1.8.5b reportTCResult() update wrong version

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
akang
Advanced user
Posts: 20
Joined: Wed Sep 22, 2010 8:36 pm

tl_1.8.5b reportTCResult() update wrong version

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

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

Post by fman »

This is an issue on a not supported anymore version => upgrade to 1.9.1
Zippie35
TestLink user
Posts: 1
Joined: Sat Feb 05, 2011 10:13 pm
Location: Germany Nortrhine-Westfalia
Contact:

thanks...

Post by Zippie35 »

thanks, that helped me a lot!
regards,
chantal
akang
Advanced user
Posts: 20
Joined: Wed Sep 22, 2010 8:36 pm

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

Post 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
akang
Advanced user
Posts: 20
Joined: Wed Sep 22, 2010 8:36 pm

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

Post 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.
Post Reply