MantisBT - TestLink
View Issue Details
0005002TestLinkExport/Importpublic2012-05-04 08:442012-09-01 19:59
rl 
fman 
normalminoralways
closedfixed 
1.9.3 (2011 Q3 - bug fixing) 
1.9.4 (2012 Q3 - bug fixing) 
MySQL
Internet Explorer 8.0
0005002: Exported test plan has multiple test case instances if test case has been executed two or more times
Number of "link" elements for a test case in an exported test plan is determined by the number of times that test case has been executed, although there is no execution related data in the exported test plan XML.
1. Create two test cases.
2. Create a test plan and assign the two test cases to that plan.
3. Create a build.
4. Execute one of the tests n times by selecting a result and pressing "Save execution". Note, that n must be at least 2.
5. Export test plan from "Test Plan Management".
6. Open the exported linkedItems_<test plan>.xml file.

The exported XML has n identical "link" entries for the test case that has been executed n times.
TO BE FIXED on 2.0
txt getLinkedStaticView.txt (2,782) 2012-07-07 14:59
http://mantis.testlink.org/file_download.php?file_id=2733&type=bug
Issue History
2012-05-04 08:44rlNew Issue
2012-07-07 14:40fmanAssigned To => fman
2012-07-07 14:40fmanStatusnew => assigned
2012-07-07 14:45fmanNote Added: 0016959
2012-07-07 14:45fmanStatusassigned => feedback
2012-07-07 14:48fmanTag Attached: TO BE FIXED on 2.0
2012-07-07 14:59fmanFile Added: getLinkedStaticView.txt
2012-07-07 15:02fmanNote Added: 0016960
2012-07-11 17:38fmanStatusfeedback => resolved
2012-07-11 17:38fmanFixed in Version => 1.9.4 (2012 Q3 - bug fixing)
2012-07-11 17:38fmanResolutionopen => fixed
2012-09-01 19:59fmanNote Added: 0017329
2012-09-01 19:59fmanStatusresolved => closed

Notes
(0016959)
fman   
2012-07-07 14:45   
Please try this

1. edit your testplan.class.php
2. add inside testplan class (be carefull there are several classes inside this source), the function present on attached code (getLinkedStaticView.txt)

3. on testplan.class.php, search method exportLinkedItemsToXML()
replace :
$mm = $this->get_linked_tcversions($id,null,array('output' => 'array'));

with
$mm = $this->getLinkedStaticView($id,null,array('output' => 'array'));

Please provide feedback
(0016960)
fman   
2012-07-07 15:02   
testlink 1.9.
http://gitorious.org/testlink-ga/testlink-code/commit/c59002699f99176578204516f860e98094c20989 [^]
http://gitorious.org/testlink-ga/testlink-code/commit/a78004a3a0a9393860e71f8897ddc94d07facdc2 [^]
(0017329)
fman   
2012-09-01 19:59   
1.9.4 released