tl_1.8.5b reportTCResult() update wrong version

Discussion and information for XML-RPC interface.

Moderators: Amaradana, TurboPT, TL Developers

tl_1.8.5b reportTCResult() update wrong version

Postby akang » Fri Feb 04, 2011 1:58 am

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

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

Postby fman » Fri Feb 04, 2011 8:39 am

This is an issue on a not supported anymore version => upgrade to 1.9.1
fman
Member of TestLink Community
 
Posts: 3062
Joined: Tue Nov 15, 2005 7:19 am

thanks...

Postby Zippie35 » Sat Feb 05, 2011 10:18 pm

thanks, that helped me a lot!
regards,
chantal
Zippie35
TestLink user
 
Posts: 1
Joined: Sat Feb 05, 2011 10:13 pm
Location: Germany Nortrhine-Westfalia

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

Postby akang » Sun Feb 06, 2011 8:12 pm

[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

Postby akang » Tue Feb 08, 2011 1:31 am

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


Return to XML-RPC API



Who is online

Users browsing this forum: No registered users and 0 guests