stable

Clone or download

Read-only

request #14777 XML export/import should preserve traceability in TTM

When we create a campaign, it is linked to a specific version of test definitions. This means that two different campaigns may pass a different version of the same test. This is normal since needs and software evolves and tests definitions should be adapted over time. Concretely, when you edit a test definition through the artifact view (update or add a step for example), then existing campaigns still points to the previous version(s). Currently the XML export/import broke this: 1. Create an empty campaign. 2. In the campaign, create a new test with description "Version A" 3. Mark the test as failed 4. Export the project 5. Import it in a new one 6. Go to the test definition **artifact view** 7. Update the description to "Version B" 8. Go to the campaign, select the test Expected result: => The test should display "Version A" Change-Id: Icca4e04474cc51088df4b3cdc31456470c882b80

Modified Files

Name
M Makefile +4 −1 Go to diff View file
M plugins/testmanagement/include/TestManagement/Campaign/Execution/ExecutionDao.php +35 −0 Go to diff View file
M plugins/testmanagement/include/TestManagement/XML/Exporter.php +29 −3 Go to diff View file
M plugins/testmanagement/include/TestManagement/XML/XMLImport.php +95 −42 Go to diff View file
M plugins/testmanagement/include/testmanagementPlugin.php +17 −7 Go to diff View file
M plugins/testmanagement/phpunit/TestManagement/XML/ExporterTest.php +49 −3 Go to diff View file
M plugins/testmanagement/phpunit/TestManagement/XML/XMLImportTest.php +80 −9 Go to diff View file
M plugins/testmanagement/phpunit/TestManagement/XML/_fixtures/testmanagement.xml +5 −1 Go to diff View file
M plugins/testmanagement/resources/testmanagement.rnc +7 −1 Go to diff View file
M plugins/testmanagement/resources/testmanagement.rng +14 −0 Go to diff View file
M plugins/tracker/include/Tracker/Action/CopyArtifact.class.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_ArtifactCreator.class.php +5 −7 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/XMLImport.class.php +45 −23 Go to diff View file
M plugins/tracker/include/Tracker/XML/Exporter/ChangesetXMLExporter.class.php +2 −0 Go to diff View file
A plugins/tracker/include/Tracker/XML/Importer/ImportedChangesetMapping.php +44 −0 Go to diff View file
M plugins/tracker/include/TrackerXmlImport.class.php +20 −14 Go to diff View file
M plugins/tracker/phpunit/Artifact/Tracker_Artifact_XMLExportTest.php +4 −0 Go to diff View file
M plugins/tracker/phpunit/Artifact/Tracker_Artifact_XMLImportTest.php +119 −50 Go to diff View file
M plugins/tracker/phpunit/Tracker/Action/CopyArtifactTest.php +6 −3 Go to diff View file
M plugins/tracker/phpunit/Tracker/Artifact/XmlImportTest.php +0 −4 Go to diff View file
A plugins/tracker/phpunit/Tracker/XML/Importer/ImportedChangesetMappingTest.php +37 −0 Go to diff View file
M plugins/tracker/resources/artifact-definition.rnc +1 −0 Go to diff View file
M plugins/tracker/resources/artifact-definition.rng +5 −0 Go to diff View file
M plugins/tracker/tests/Tracker/XML/Exporter/ChangesetXMLExporterTest.php +27 −5 Go to diff View file
M src/common/xml/resources/project/artifact-definition.rng +5 −0 Go to diff View file