MantisBT - TestLink
View Issue Details
0006444TestLinkAPI - XMLRPCpublic2014-07-23 12:252014-07-28 20:31
foxcris 
fman 
normalfeature requestalways
closedfixed 
1.9.10 (2014 Q1 - bug fixing) 
1.9.11 (2014 Q2 - bug fixing) 
mysql
READY FOR TESTING
0006444: Extend API - XMLRPC function "getLastExecutionResult" to return also the linked bug ids
With the function getLastExecutionResult the last execution status of an testcase can be requested via the XMLRPC. This function currently does not report the bugids which have been attached during the executions. The attached path adds this feature.
The attached patch has been created agains the current brach testlink_1_9. Timestamp: 2014-07-23 14:00
No tags attached.
child of 0006313closed fman Availables hot-fixes for 1.9.10 & How To get full fixed package from gitorious 
patch testlink-code.patch (1,642) 2014-07-23 12:25
http://mantis.testlink.org/file_download.php?file_id=3775&type=bug
patch testlink-code_v2.patch (3,257) 2014-07-24 05:59
http://mantis.testlink.org/file_download.php?file_id=3778&type=bug
png Screenshot - 07252014 - 08:31:08 PM.png (25,110) 2014-07-25 18:31
http://mantis.testlink.org/file_download.php?file_id=3780&type=bug
png
Issue History
2014-07-23 12:25foxcrisNew Issue
2014-07-23 12:25foxcrisFile Added: testlink-code.patch
2014-07-23 17:19fmanNote Added: 0021294
2014-07-24 05:59foxcrisFile Added: testlink-code_v2.patch
2014-07-24 06:02foxcrisNote Added: 0021297
2014-07-24 14:42fmanNote Added: 0021298
2014-07-24 14:42fmanNote Edited: 0021298bug_revision_view_page.php?bugnote_id=21298#r3625
2014-07-24 21:19fmanNote Added: 0021301
2014-07-24 21:37fmanAssigned To => fman
2014-07-24 21:37fmanStatusnew => assigned
2014-07-25 04:51foxcrisNote Added: 0021302
2014-07-25 12:38fmanNote Added: 0021303
2014-07-25 18:31fmanFile Added: Screenshot - 07252014 - 08:31:08 PM.png
2014-07-25 18:38fmanQA Team - Task Workflow Status => READY FOR TESTING
2014-07-25 18:38fmanNote Added: 0021304
2014-07-25 18:38fmanStatusassigned => resolved
2014-07-25 18:38fmanFixed in Version => 1.9.11 (2014 Q2 - bug fixing)
2014-07-25 18:38fmanResolutionopen => fixed
2014-07-25 18:38fmanProduct Version => 1.9.10 (2014 Q1 - bug fixing)
2014-07-25 18:38fmanRelationship addedchild of 0006313
2014-07-28 20:31fmanStatusresolved => closed

Notes
(0021294)
fman   
2014-07-23 17:19   
Thanks for your contribution
A option is need to allow user to get or not BUGS.
(0021297)
foxcris   
2014-07-24 06:02   
Attached you can find v2 of the patch.
As proposed I added an option "listbugids" to configure the behaviour of "getLastExecutionResult".

   * @param int $args["listbugids"] - optional
   * if set to "all" the bugids of all executions are returned
   * if set to "latest" only bug ids linked with the latest execution are returned
(0021298)
fman   
2014-07-24 14:42   
will see if a better name can be used
option for DO NOT GET bugs is also needed

(0021301)
fman   
2014-07-24 21:19   
patch2 is rejected.
function has to return only bugs related to last execution because this is method scope.
(0021302)
foxcris   
2014-07-25 04:51   
I now the scope is the last execution. However what a user(in this case me) wants to retrieve is the latest state of the testcase (passed,failed ...) and all bug ids. All bug ids are required as during testing the tester is not entering all the bug ids again on each execution.
For example you have a test which has failed on the first build. The tester has assigned a bug id to this execution. The next time the test is executed the test still fails. As the bug was already linked, the tester is not entering it again. Thats what is my experience. Thus I think all bug ids belong the the latest execution depending on the workflow which is used for testing.

However if you do not want introduce also an option to get all bug ids of all executions with the function "getLastExecutionResult" i would propose to create a new function "getAllBugIDs(testplanname, testcase)". Is that ok for you? I would rework the patch then. Additionally I would change introduced option "listbugids" for "getLastExecutionResult" to be a boolean value. Thus someone can explicitly decide to get the bugids or not. Default value would be to not retrieve the bug ids (no change to the behaviour before).
(0021303)
fman   
2014-07-25 12:38   
>> "getAllBugIDs(testplanname, testcase)". Is that ok for you?
more or less but is a better solution
provide code and I will review and refactor it as needed
(0021304)
fman   
2014-07-25 18:38   
https://gitorious.org/testlink-ga/testlink-code/commit/83d008016816311b0d189bc1b1eab6e9da359010 [^]