stable
Clone or download
It is currently possible to have n requirements for a test definition, by adding manually the link covered_by on each requirements. However only the first one is displayed in the web interface. This commit prepare the field to change the behavior of the RESTΒ API, by deprecating the `requirement` property and introducing a brand new `all_requirements` to not break the API (`requirement` is still returning one of the requirements). Every apps based on this REST representation are updated to use the new property: TTM, TestPlan, DocGen There isn't any functional change in TestPlan and Docgen, we still deal with the first requirement. Dedicated contribution(s) will upgrade those app to handle properly multiple requirements in the exported document. There is a temporary change in TTM: if a test is linked to multiple requirements, then no link is displayed at all (while the first one was displayed before). This will be fixed in a very next contribution to display all requirements instead of just one. Part of request #24972: Tests can cover multiple requirements Change-Id: If97a598ef276f5a9aa5aadfb9c671af72cef15e4
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/document_generation/scripts/lib/docx/src/type.ts | +2 | β2 | Go to diff View file |
M | plugins/document_generation/scripts/tracker-report-action/src/DocumentBuilder/create-traceability-matrix.test.ts | +16 | β12 | Go to diff View file |
M | plugins/document_generation/scripts/tracker-report-action/src/DocumentBuilder/create-traceability-matrix.ts | +3 | β2 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/ArtifactDao.php | +4 | β4 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/Config.class.php | +1 | β1 | Go to diff View file |
A | plugins/testmanagement/include/TestManagement/IRetrieveTestExecutionTrackerIdFromConfig.php | +31 | β0 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/DefinitionCommonmarkRepresentation.php | +12 | β17 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/DefinitionRepresentationBuilder.php | +16 | β4 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/DefinitionTextOrHTMLRepresentation.php | +11 | β17 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/RequirementRetriever.php | +14 | β32 | Go to diff View file |
M | plugins/testmanagement/scripts/testmanagement/src/execution/execution-detail.tpl.html | +5 | β5 | Go to diff View file |
M | plugins/testmanagement/tests/rest/TestManagement/DefinitionsTest.php | +1 | β0 | Go to diff View file |
M | plugins/testmanagement/tests/unit/TestManagement/REST/v1/DefinitionRepresentations/DefinitionRepresentationBuilderTest.php | +4 | β4 | Go to diff View file |
M | plugins/testmanagement/tests/unit/TestManagement/REST/v1/DefinitionRepresentations/DefinitionRepresentationTest.php | +1 | β1 | Go to diff View file |
A | plugins/testmanagement/tests/unit/TestManagement/REST/v1/RequirementRetrieverTest.php | +88 | β0 | Go to diff View file |
M | plugins/testplan/scripts/test-plan/src/helpers/ExportAsDocument/Reporter/traceability-matrix-creator.test.ts | +67 | β49 | Go to diff View file |
M | plugins/testplan/scripts/test-plan/src/helpers/ExportAsDocument/Reporter/traceability-matrix-creator.ts | +4 | β3 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/RetrieveViewableArtifact.php | +32 | β0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_ArtifactFactory.class.php | +3 | β4 | Go to diff View file |