MantisBT - TestLink
View Issue Details
0003470TestLinkExport/Importpublic2010-05-18 12:312010-08-31 20:26
twelve 
fman 
normalmajoralways
closedreopened 
1.9 Beta 3 
1.9 Beta 6 
0003470: XML import of test results with platforms fails
When trying to import test results via XML files in a testplan that contains multiple platforms, all the results are imported into the database with a platform ID of 0 and therefore never show up in the results reports.
Create a testplan with multiple platforms, import results with a XML file. The import finishes successfully but you'll never see the imported results on the website.
See the attached file for patches that add support for platforms to the test results import functions in gui/templates/results/resultsImport.tpl and lib/results/resultsImport.php
That patches are against Testlink 1.9 Beta 3
No tags attached.
related to 0003475closed fman Import results - XML - possibility to get platform ID and/or BUILD ID from file 
diff resultsImport.diff (4,766) 2010-05-18 12:31
http://mantis.testlink.org/file_download.php?file_id=1599&type=bug
zip fix-3470-3475.zip (6,888) 2010-05-18 21:02
http://mantis.testlink.org/file_download.php?file_id=1604&type=bug
Issue History
2010-05-18 12:31twelveNew Issue
2010-05-18 12:31twelveFile Added: resultsImport.diff
2010-05-18 17:41fmanNote Added: 0010057
2010-05-18 18:49fmanNote Edited: 0010057bug_revision_view_page.php?bugnote_id=10057#r19
2010-05-18 19:43fmanNote Added: 0010061
2010-05-18 21:01fmanRelationship addedrelated to 0003475
2010-05-18 21:02fmanFile Added: fix-3470-3475.zip
2010-05-18 21:02fmanStatusnew => resolved
2010-05-18 21:02fmanFixed in Version => 1.9 Beta 5
2010-05-18 21:02fmanResolutionopen => fixed
2010-05-18 21:02fmanAssigned To => fman
2010-07-21 08:12twelveNote Added: 0010721
2010-07-21 08:12twelveStatusresolved => assigned
2010-07-21 08:12twelveResolutionfixed => reopened
2010-08-21 16:28fmanNote Added: 0010913
2010-08-21 16:28fmanStatusassigned => resolved
2010-08-21 16:28fmanFixed in Version1.9 Beta 5 => 1.9 Beta 6
2010-08-31 20:26fmanNote Added: 0011049
2010-08-31 20:26fmanStatusresolved => closed

Notes
(0010057)
fman   
2010-05-18 17:41   
(edited on: 2010-05-18 18:49)
please:
1. do not submit patches but complete code, is easier for us
2. try to check with latest release becuase issue can be not be reported BUT FIXED

(0010061)
fman   
2010-05-18 19:43   
I've found that code to support platform_id on XML file has not been commited before creation of beta4
(0010721)
twelve   
2010-07-21 08:12   
I'm updating to 1.9 Beta 5 and this issue is not fixed.
In line 34 of lib/results/resultsImport.php the build and platform information is read from the referrer variables "build_id" and "platform_id". While this worked with 1.9 Beta 3, these variables do not exist anymore in 1.9 Beta 5. It seems that in some places they were renamed to "setting_build" and "setting_platform" for unknown reasons.
(0010913)
fman   
2010-08-21 16:28   
@twelve:
Thanks for debuging info, has helped a lot.
Issue fixed for next beta (Sept. 5 2010)
(0011049)
fman   
2010-08-31 20:26   
Release BETA 6 - 20100831