MantisBT - TestLink
View Issue Details
0007497TestLinkAPI - XMLRPCpublic2016-04-09 22:082016-09-08 15:13
killerbee 
fman 
normalfeature requestalways
closedfixed 
1.9.14 (2015 Q3) 
1.9.15 (2015 Q4) 
Mysql
READY FOR TESTING
0007497: create / update Testcase do not support to set the TestCaseStatus
this is not about the execution status but about the state of the test case spec
use craet / update test case API method and set the test case status to NOT draft. GUI still shows it as DRAFT
No tags attached.
child of 0007262closed fman Availables hot-fixes for 1.9.14 & How To get full fixed package from GitHub 
Issue History
2016-04-09 22:08killerbeeNew Issue
2016-04-10 09:25fmanNote Added: 0024673
2016-04-10 09:25fmanQA Team - Task Workflow Status => TBD
2016-04-10 09:25fmanPriorityhigh => normal
2016-04-10 09:34fmanQA Team - Task Workflow StatusTBD => READY FOR TESTING
2016-04-10 09:34fmanNote Added: 0024674
2016-04-10 09:34fmanStatusnew => resolved
2016-04-10 09:34fmanFixed in Version => 1.9.15 (2015 Q4)
2016-04-10 09:34fmanResolutionopen => fixed
2016-04-10 09:34fmanAssigned To => fman
2016-04-10 09:35fmanRelationship addedchild of 0007262
2016-04-10 09:41fmanIssue cloned: 0007498
2016-04-11 11:11killerbeeNote Added: 0024677
2016-04-11 11:11killerbeeStatusresolved => assigned
2016-04-11 11:11killerbeeResolutionfixed => reopened
2016-04-11 11:51killerbeeNote Added: 0024678
2016-04-11 11:51killerbeeNote Edited: 0024678bug_revision_view_page.php?bugnote_id=24678#r4817
2016-04-11 12:18fmanNote Added: 0024679
2016-04-11 12:18fmanNote View State: 0024679: public
2016-04-11 12:18fmanStatusassigned => resolved
2016-04-11 12:18fmanResolutionreopened => fixed
2016-09-08 15:13fmanNote Added: 0025262
2016-09-08 15:13fmanStatusresolved => closed

Notes
(0024673)
fman   
2016-04-10 09:25   
1) updateTestCase() method support status parameter and work OK. (just tested).
Unfortunately you did not provide detailed steps to reproduce, that in for API call means details of value of each parameter used in call
status has to be provided as INT VALUE according to spec on:
const.inc.php => $tlCfg->testCaseStatus

2) Please remember that good issue reporting requires that one ticket is open for each issue, that means for your report that two issues has to been opened one for the create method and one for the update.
(0024674)
fman   
2016-04-10 09:34   
https://github.com/TestLinkOpenSourceTRMS/testlink-code/commit/ef504427ea37974ed8335a2c7a4af49bfc9e3826 [^]
(0024677)
killerbee   
2016-04-11 11:11   
Sorry, but i think your test is not correctly performed in that it just checks probably the returned test case (which contains the correct state) but NOT the database. When you check the GUI you will see that the test case still has the old status (draft) no matter what you specify in the create method. you can also test / verify this by uising getTestcase method to retrieve data from db and check there

br
Thomas
(0024678)
killerbee   
2016-04-11 11:51   
in hot fix version (from ticket 7262) create test case works as expected so maybe it was misunderstanding from my side.

(0024679)
fman   
2016-04-11 12:18   
Before writting things like note 24677, it will be better that you provide detailed steps to reproduce.
(0025262)
fman   
2016-09-08 15:13   
1.9.15 Released - 2016-09-08