stable

Clone or download

Read-only

XML validation for steps data import : ttm part

part of story #13003 : import/export TTM steps in XML This patch add RNG validation for testmanagement steps as external_field_change. How to test : - export project with test_case tracker - add a type 'steps' external_field_change on changeset : this should look like <step> <description format="html"><![CDATA[Yep]]></description> <expected_results format="html"><![CDATA[Non]]></expected_results> </step> <step> <description format="text"><![CDATA[Yep]]></description> <expected_results format="text"><![CDATA[Non]]></expected_results> </step> -> import should not raise error -> import should raise error if you add a error on xml Change-Id: I0aca51d0984e5d68d0369bbddbfbf27d55bea1e6

Modified Files

Name
M include/TestManagement/XML/ImportXMLFromTracker.php +8 −0 Go to diff View file
M include/testmanagementPlugin.php +12 −3 Go to diff View file
M phpunit/TestManagement/XML/TrackerXMLImportTest.php +35 −0 Go to diff View file
A resources/testmanagement_external_changeset.rnc +25 −0 Go to diff View file
A resources/testmanagement_external_changeset.rng +38 −0 Go to diff View file