Import Suite to update test cases with new version?

1.8 related questions and discussions.
Please upgrade to LATEST 1.9.x.
No more fixes for 1.8.

Moderators: Amaradana, TurboPT, TL Developers

Locked
gaochinf
TestLink user
Posts: 3
Joined: Sat Jul 03, 2010 12:49 am

Import Suite to update test cases with new version?

Post by gaochinf »

With Import Test Case, we are able to specify that the imported XML should add a new version to an existing test case if the name matches.

Is there a design reason why the Import Test Suite does not support a similar capability?

My particular need is to systematically update many test cases. So I am exporting the test suites to XML, modifying the XML and re-importing into TestLink.


(As a further refinement, I was thinking it could be nice to have TestLink also detect when a duplicated name test case did not change. For example, after exporting say 10 testcase, modifying 8 in XML and re-importing, TestLink would update 8 test cases each with a new version and not change 2 test cases.)
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Import Suite to update test cases with new version?

Post by fman »

Please get 1.9 beta 5 and see if new features in import test case area can be useful for you.
There will be no new developments on 1.8.x version
gaochinf
TestLink user
Posts: 3
Joined: Sat Jul 03, 2010 12:49 am

Re: Import Suite to update test cases with new version?

Post by gaochinf »

In 1.9 Beta 5, the 'Import Test Suite' behavior remains as in 1.8; when I import a suite and a duplicate test case name is found, a new copy of the same test case is created with a unique name.

From looking at the code in 1.8.5 and 1.9 beta 5, it appears that it may not be too difficult to change the upload/import code (tcImport.php) to support adding a new version of a test case when an identical name is found.

Is there an intentional reason why the 'useRecursion' (suite import) and 'create_new_version' (individual test case import) options are exclusive from each other?
fman
Member of TestLink Community
Posts: 3123
Joined: Tue Nov 15, 2005 7:19 am

Re: Import Suite to update test cases with new version?

Post by fman »

add feature request on mantis, please do not add link to this post, but give detailed steps on mantis issue description
gaochinf
TestLink user
Posts: 3
Joined: Sat Jul 03, 2010 12:49 am

Re: Import Suite to update test cases with new version?

Post by gaochinf »

Added as feature request 3571: http://mantis.testlink.org/view.php?id=3571
Locked