stable
Clone or download
Read-only
fix: request #31937 Docx tests export does not use the expected test version
Given a Testmanagement campaign with at least one test that is not in its last definition version, then when we export this campaign as a document, the expected test version must be exported in the document, not the test definition last version. How to test ----------- * Create a TTM campaign with some tests * Edit one test definition used in this campaign * Run the campaign by running some tests / steps and updating their status * Export the campaign as a docmument => The expected test definition version and results must be exported in the document (this must also work for test plan) Change-Id: Ied613117e633715d182ddab4b4d0f37f148500fb
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/document_generation/scripts/lib/docx/src/Artifact/artifacts-structure-retriever.test.ts | +3 | −0 | Go to diff View file |
M | plugins/document_generation/scripts/lib/docx/src/Artifact/test-execution-retriever.test.ts | +8 | −1 | Go to diff View file |
M | plugins/document_generation/scripts/lib/docx/src/type.ts | +1 | −0 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/CampaignsResource.class.php | +22 | −2 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/DefinitionCommonmarkRepresentation.php | +2 | −1 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/DefinitionRepresentationBuilder.php | +20 | −1 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/DefinitionTextOrHTMLRepresentation.php | +2 | −1 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/DefinitionRepresentations/MinimalDefinitionRepresentation.php | +9 | −0 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/DefinitionsResource.class.php | +22 | −1 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/ExecutionsResource.class.php | +22 | −2 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/ProjectResource.class.php | +22 | −1 | Go to diff View file |
A | plugins/testmanagement/scripts/testmanagement/src/helpers/ExportAsDocument/Reporter/last-executions-retriever.test.ts | +356 | −0 | Go to diff View file |
A | plugins/testmanagement/scripts/testmanagement/src/helpers/ExportAsDocument/Reporter/last-executions-retriever.ts | +65 | −0 | Go to diff View file |
M | plugins/testmanagement/scripts/testmanagement/src/helpers/ExportAsDocument/Reporter/report-creator.test.ts | +3 | −0 | Go to diff View file |
M | plugins/testmanagement/scripts/testmanagement/src/helpers/ExportAsDocument/Reporter/report-creator.ts | +36 | −8 | Go to diff View file |
M | plugins/testmanagement/scripts/testmanagement/src/helpers/ExportAsDocument/Reporter/step-test-definition-formatter.test.ts | +105 | −166 | Go to diff View file |
M | plugins/testmanagement/scripts/testmanagement/src/helpers/ExportAsDocument/Reporter/step-test-definition-formatter.ts | +2 | −51 | Go to diff View file |
M | plugins/testmanagement/scripts/testmanagement/src/type.ts | +2 | −0 | Go to diff View file |
M | plugins/testmanagement/tests/unit/TestManagement/REST/v1/DefinitionRepresentations/DefinitionRepresentationBuilderTest.php | +54 | −13 | Go to diff View file |
M | plugins/testmanagement/tests/unit/TestManagement/REST/v1/DefinitionRepresentations/DefinitionRepresentationTest.php | +8 | −5 | Go to diff View file |
M | plugins/testplan/include/REST/v1/DefinitionLinkedToABacklogItemRepresentation.php | +39 | −1 | Go to diff View file |
M | plugins/testplan/scripts/test-plan/src/helpers/ExportAsDocument/Reporter/report-creator.test.ts | +3 | −0 | Go to diff View file |
M | plugins/testplan/scripts/test-plan/src/helpers/ExportAsDocument/Reporter/report-creator.ts | +32 | −7 | Go to diff View file |