stable

Clone or download

Read-only

feat: get all requirements linked to a test definition

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