MantisBT - TestLink
View Issue Details
0005491TestLinkExport/Importpublic2013-01-22 10:412013-01-24 11:10
virgo0 
fman 
normalmajoralways
closedfixed 
x86_64RHEL6.0
1.9.5 (2012 Q4 - bug fixing) 
1.9.6 (2013 Q1 - bug fixing) 
MySQL
Chrome 24.0
5.3.2
READY FOR TESTING
0005491: DB Access Error when import test case XML with CF
Get latest packet from
http://gitorious.org/testlink-ga/testlink-code/archive-tarball/testlink_1_9 [^]

Import test case with custom field and get DB Access Error
 - Test project also assign corresponding custom field
 - No this error if un-assign CF from test project


 ==============================================================================
 DB Access Error - debug_print_backtrace() OUTPUT START
 ==============================================================================
 ==============================================================================
Fatal error: Call to a member function RecordCount() on a non-object in /tl196/lib/functions/database.class.php on line 510
1. Fresh install after get latest package based on 0005406
2. Create test project (with default settings)
3. Import test case from XML (attachment "IO.testsuite-deep-196.xml")
4. Change to sub-folder ("Storage IO") and import test case from XML again
   - Can't import, refer to attachment "01.Import without CF assigned.jpg"
5. Import CF from XML (attachment "customFields.xml") and assign to test project
6. Change to sub-folder ("Storage IO") and import test case from XML again
   - Get DB Access Error, refer to attachment "02.Import with CF assigned.jpg"
Check fix of 0005309
TO BE FIXED on 2.0
xml IO.testsuite-deep-196.xml (1,762) 2013-01-22 10:41
http://mantis.testlink.org/file_download.php?file_id=3100&type=bug
xml customFields.xml (3,224) 2013-01-22 10:43
http://mantis.testlink.org/file_download.php?file_id=3101&type=bug
jpg 01.Import without CF assigned.jpg (101,005) 2013-01-22 10:43
http://mantis.testlink.org/file_download.php?file_id=3102&type=bug
jpg

jpg 02.Import with CF assigned.jpg (62,840) 2013-01-22 10:43
http://mantis.testlink.org/file_download.php?file_id=3103&type=bug
jpg

jpg 03.Fix_Import with CF assigned.jpg (96,236) 2013-01-24 01:11
http://mantis.testlink.org/file_download.php?file_id=3105&type=bug
jpg
Issue History
2013-01-22 10:41virgo0New Issue
2013-01-22 10:41virgo0File Added: IO.testsuite-deep-196.xml
2013-01-22 10:43virgo0File Added: customFields.xml
2013-01-22 10:43virgo0File Added: 01.Import without CF assigned.jpg
2013-01-22 10:43virgo0File Added: 02.Import with CF assigned.jpg
2013-01-23 17:40fmanNote Added: 0018215
2013-01-23 17:41fmanTag Attached: TO BE FIXED on 2.0
2013-01-23 17:58fmanFixed in Version => 1.9.6 (2013 Q1 - bug fixing)
2013-01-23 18:00fmanNote Added: 0018216
2013-01-23 18:00fmanQA Team - Task Workflow StatusTBD => READY FOR TESTING
2013-01-24 01:11virgo0File Added: 03.Fix_Import with CF assigned.jpg
2013-01-24 01:15virgo0Note Added: 0018217
2013-01-24 11:10fmanStatusnew => closed
2013-01-24 11:10fmanAssigned To => fman
2013-01-24 11:10fmanResolutionopen => fixed

Notes
(0018215)
fman   
2013-01-23 17:40   
http://gitorious.org/testlink-ga/testlink-code/commit/f1df3b79be2f98355a017d0d64a8107e78093048 [^]
(0018216)
fman   
2013-01-23 18:00   
>> 6. Change to sub-folder ("Storage IO") and import test case from XML again
>> - Get DB Access Error, refer to attachment "02.Import with CF assigned.jpg"
If think you want to do is redo import to update already imported test cases, AFTER you have imported and assigned CF this is step is wrong

You need to repeat step 3
(0018217)
virgo0   
2013-01-24 01:15   
@Fman

Fix is ok, thanks.

What I want to do is checking if import test case with existent external ID will be blocked.