MantisBT - TestLink
View Issue Details
0006934TestLinkAPI - XMLRPCpublic2015-02-05 07:412015-09-19 08:50
swang3 
fman 
normalfeature requesthave not tried
closedfixed 
1.9.12 (2014 Q3) 
1.9.14 (2015 Q3) 
MySQL
READY FOR TESTING
0006934: Set keywords for a test case or a test case set
Support set keywords for a test case or a test case set.

During debugging of this feature, there are 2 issues found in getValidKeywordSet() and fixed.
1. $by_name = false doesn't work.
2. When $keywords is empty, it will return all keywords for this project.
No tags attached.
related to 0006907closed fman XML-RPC API - Remove keywords from a test case set 
child of 0006830closed fman Availables hot-fixes for 1.9.13 & How To get full fixed package from GitHub 
zip xmlrpc.class.zip (48,128) 2015-02-05 07:41
http://mantis.testlink.org/file_download.php?file_id=4097&type=bug
Issue History
2015-02-05 07:41swang3New Issue
2015-02-05 07:41swang3File Added: xmlrpc.class.zip
2015-02-05 10:55fmanNote Added: 0022633
2015-02-05 12:18swang3Note Added: 0022640
2015-02-05 12:30swang3Note Edited: 0022640bug_revision_view_page.php?bugnote_id=22640#r4139
2015-02-13 19:32fmanNote Added: 0022706
2015-02-14 10:32fmanNote Added: 0022707
2015-02-14 10:34fmanQA Team - Task Workflow Status => READY FOR TESTING
2015-02-14 10:34fmanNote Added: 0022708
2015-02-14 10:34fmanStatusnew => resolved
2015-02-14 10:34fmanFixed in Version => 1.9.14 (2015 Q3)
2015-02-14 10:34fmanResolutionopen => fixed
2015-02-14 10:34fmanAssigned To => fman
2015-02-14 10:34fmanRelationship addedchild of 0006830
2015-02-14 11:06fmanRelationship addedrelated to 0006907
2015-09-19 08:50fmanNote Added: 0023984
2015-09-19 08:50fmanStatusresolved => closed

Notes
(0022633)
fman   
2015-02-05 10:55   
>> 1. $by_name = false doesn't work.
please provide better details
(0022640)
swang3   
2015-02-05 12:18   
(edited on: 2015-02-05 12:30)
Missing '' for this line in getValidKeywordSet():
$sql .= " AND id IN ({$itemSet})";
so changed it to:
$sql .= " AND id IN ('{$itemSet}')";

(0022706)
fman   
2015-02-13 19:32   
Implementation will be completely reviewed and refactored.
Attached code will not be supported
(0022707)
fman   
2015-02-14 10:32   
method addTestCaseKeywords()
 * @param struct $args
* @param string $args["devKey"]
* @param array $args["keywords"]: map key testcaseexternalid
* values array of keyword name

call examples:
$args=array();
$args["devKey"]=isset($_REQUEST['apiKey']) ? $_REQUEST['apiKey'] : $devKey;
$args["keywords"] = array('MAB-3' => array('Barbie','Barbie'),
                                      'MAB-2' => array('Barbie','Jessie'));
(0022708)
fman   
2015-02-14 10:34   
Access to commit:
https://gitorious.org/testlink-ga/testlink-code/commits/1892d9a52ea875317b49b77ec1ec416842b6d535 [^]
(0023984)
fman   
2015-09-19 08:50   
1.9.14 Padawan - released - 2015-09-19