MantisBT - TestLink
View Issue Details
0005159TestLinkExport/Importpublic2012-08-22 09:002012-10-25 13:39
sujataverma3 
fman 
normalmajoralways
closedfixed 
WindowsWinXP
1.9.4 Preview 
1.9.4 (2012 Q3 - bug fixing) 
MySQL 5.1.30
Firefox 14
5.2.8
READY FOR TESTING
0005159: importing duplicate test suites (with option 'Create a new test case with different title') =>test case id is getting duplicated
While uploading the testsuite two times with selection for duplicates as "Create a new test case with different title" , the test cases are being generated properly with different title but the "Test Case ID" is getting duplicated.

If we select the Test case Id filter , it displays only the first test case added.
1) Create Test Project -> Project A
2) Go to Test specification
3) Import attached test suite xml file twice with selection

Action for duplicates : "Create a new test case with different title"

4) The test cases are getting imported with some debug prints on top.

5) Duplicate test ID can be seen in Test specification tree.
Tested on latest tarball (22/8/2012)


http://gitorious.org/testlink-ga/testlink-code/archive-tarball/testlink_1_9 [^]
1.9.4 PREVIEW
jpg TestCase_ID.jpg (158,149) 2012-08-22 09:00
http://mantis.testlink.org/file_download.php?file_id=2803&type=bug
jpg

jpg Duplicate_TestCase.jpg (94,405) 2012-08-22 09:01
http://mantis.testlink.org/file_download.php?file_id=2804&type=bug
jpg

xml testproject-deep.xml (3,073) 2012-08-22 09:01
http://mantis.testlink.org/file_download.php?file_id=2805&type=bug
jpg TCID duplication.jpg (38,932) 2012-10-25 11:51
http://mantis.testlink.org/file_download.php?file_id=2930&type=bug
jpg
Issue History
2012-08-22 09:00sujataverma3New Issue
2012-08-22 09:00sujataverma3File Added: TestCase_ID.jpg
2012-08-22 09:01sujataverma3File Added: Duplicate_TestCase.jpg
2012-08-22 09:01sujataverma3File Added: testproject-deep.xml
2012-08-22 09:02sujataverma3Tag Attached: 1.9.4 PREVIEW
2012-08-22 09:12fmanAssigned To => fman
2012-08-22 09:12fmanStatusnew => assigned
2012-08-22 10:08fmanSummaryTest Specification: For importing duplicate test suites , the test case id is getting duplicated => importing duplicate test suites (with option 'Create a new test case with different title') =>test case id is getting duplicated
2012-08-22 10:12fmanNote Added: 0017141
2012-08-22 10:12fmanNote Edited: 0017141bug_revision_view_page.php?bugnote_id=17141#r2013
2012-08-22 10:15fmanNote Edited: 0017141bug_revision_view_page.php?bugnote_id=17141#r2014
2012-08-22 12:47fmanNote Added: 0017143
2012-08-22 12:47fmanTask Workflow StatusTBD => READY FOR TESTING
2012-08-22 12:47fmanStatusassigned => resolved
2012-08-22 12:47fmanFixed in Version => 1.9.4 (2012 Q3 - bug fixing)
2012-08-22 12:47fmanResolutionopen => fixed
2012-09-01 19:56fmanNote Added: 0017232
2012-09-01 19:56fmanStatusresolved => closed
2012-10-25 11:51sujataverma3Note Added: 0017731
2012-10-25 11:51sujataverma3Statusclosed => assigned
2012-10-25 11:51sujataverma3Resolutionfixed => reopened
2012-10-25 11:51sujataverma3File Added: TCID duplication.jpg
2012-10-25 11:52sujataverma3Note Added: 0017732
2012-10-25 13:38fmanNote Added: 0017733
2012-10-25 13:39fmanStatusassigned => closed
2012-10-25 13:39fmanResolutionreopened => fixed

Notes
(0017141)
fman   
2012-08-22 10:12   
(edited on: 2012-08-22 10:15)
>> 4) The test cases are getting imported with some debug prints on top.
this is ERROR not debug, each time you see D ACCESS ERROR is an error

I will try to provide a fix tomorrow

(0017143)
fman   
2012-08-22 12:47   
http://gitorious.org/testlink-ga/testlink-code/commit/01573cb840c5bbc2d7c24af0a41d53b525bb89ea [^]
(0017232)
fman   
2012-09-01 19:56   
1.9.4 released
(0017731)
sujataverma3   
2012-10-25 11:51   
The issue is solved if the import is done at same level. If the import is done at second/third level the issue still exists. Even the title is getting duplicated.

As the issue is only partially fixed for one case, reopening the bug.

Tested on latest code base 25 oct.
(0017732)
sujataverma3   
2012-10-25 11:52   
Please see screenshot to understand the issue.
(0017733)
fman   
2012-10-25 13:38   
1. issue as reported was fixed => can not be reopened
2. open a new ond with detailed steps to reproduce and right version