MantisBT - TestLink
View Issue Details
0006084TestLinkTest Specification - Move/Copy Test Casespublic2013-12-09 10:352014-04-25 17:39
ntr 
fman 
normalmajoralways
closedfixed 
1.9.9 (2013 Q4 - bug fixing) 
1.9.10 (2014 Q1 - bug fixing) 
MySql
Firefox
READY FOR TESTING
0006084: Cannot copy a testcase with (attached) linked requirements
When try to copy a testcase which has (attached) linked requirement, and checking corresponding checkbox to keep (attached) linked requirement in the duplicated testcase, teslink shows a DB error.
The testcase is well copied, but without the requirement links.


I've done some modifications which seems to remove the bug :
</lib/functions/testcase.clss.php>

Line 1544:
$this->copyReqAssignment($id, $newTCObj['id'], $my['mappings']['requirements'], $ix->authorID); // added last argument (please check syntax since I've entered it manually from a paper and not by copy/paste)

Line 3694:
function copyReqAssignmentTo($from, $to, $mappings, $authorID) // added last argument

Line 3717:
$req_mgr->assign_to_tcase($items,$to, $authorID); // added $authorID
Try to duplicate a testcase with (attached) linked requirements, and REQUEST TO keep requirements in duplicated testcase by checking corresponding checkbox.
No tags attached.
related to 0006073closed fman Copied Testcase shows a database error 
child of 0006048closed fman Availables hot-fixes for 1.9.9 & How To get full fixed package from gitorious 
Issue History
2013-12-09 10:35ntrNew Issue
2013-12-09 10:53fmanNote Added: 0020171
2013-12-09 10:55fmanRelationship addedrelated to 0006073
2013-12-09 10:56fmanNote Edited: 0020171bug_revision_view_page.php?bugnote_id=20171#r3224
2013-12-09 11:00fmanNote Edited: 0020171bug_revision_view_page.php?bugnote_id=20171#r3225
2013-12-09 11:06fmanSummaryCannot copy a testcase with attached requirements => Cannot copy a testcase with (attached) linked requirements
2013-12-09 11:06fmanDescription Updatedbug_revision_view_page.php?rev_id=3227#r3227
2013-12-09 11:06fmanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=3229#r3229
2013-12-09 11:06fmanAssigned To => fman
2013-12-09 11:06fmanStatusnew => assigned
2013-12-09 11:26fmanNote Added: 0020172
2013-12-09 16:11ntrNote Added: 0020173
2013-12-10 19:22fmanQA Team - Task Workflow StatusTBD => READY FOR TESTING
2013-12-10 19:22fmanStatusassigned => resolved
2013-12-10 19:22fmanFixed in Version => 1.9.10 (2014 Q1 - bug fixing)
2013-12-10 19:22fmanResolutionopen => fixed
2013-12-10 19:22fmanRelationship addedchild of 0006048
2014-04-25 17:39fmanNote Added: 0020878
2014-04-25 17:39fmanStatusresolved => closed

Notes
(0020171)
fman   
2013-12-09 10:53   
(edited on: 2013-12-09 11:00)
1. using right words are needed: attached requirements is completely wrong
in testlink when we talk of attachements we are talking about uploading files
test case HAS LINKED REQUIREMENTS

2. if you do some search you avoid us work, this has been already reported.
ALWAYS SEARCH WITHOUT STATUS FILTER (closed issues are HIDDEN by DEFAULT)

3. I'm going to check your proposed solution, and provide feedback

(0020172)
fman   
2013-12-09 11:26   
1. create test project TPRJ
2. create a test suite TS100
3. create a test case TC-1A
4. create req spec - RSPEC-100
5. create requirement - REQ-ALFA
6. create requirement - REQ-BETA
7. link TC-1A to both Requirements
8. on test spec CLICK on left pane tree, on TC-1A node
9. on righ pane CLICK on Move/Copy
10. check [] Copy Requirement Assignments
11. Click on COPY
(0020173)
ntr   
2013-12-09 16:11   
I confirm the steps you've mentionned to reproduce the issue.
Sorry if I did some confusions with the terms I used to describe the issue (my english is sometimes poor...).
Nvertherless I was happy to try to produce a contribution to your work by proposing a solution for an issue...
(0020878)
fman   
2014-04-25 17:39   
1.9.10 released