stable
Clone or download
part of story #14813 have a REST route to associate automated test results to TTM tests With this patch, you should be able to pass Junit automated tests result to the REST route PATCH /testmanagement_campaigns/{id} Corresponding test executions will be updated. The name of the test case should be the same as the automated test field on test case artifact. Exemple of correct Junit : <testsuites> <testsuite> <testcase name="firsttest" time="5.649"></testcase> <testcase name="failtest" time="9"> <failure>this is a failure</failure> </testcase> </testsuite> </testsuites> Junit format is based on : https://github.com/jenkinsci/xunit-plugin/blob/ae25da5089d4f94ac6c4669bf736e4d416cc4665/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd Change-Id: I11e24f845eaf200d71529d4c9441d613070e8275
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/testmanagement/include/TestManagement/ArtifactDao.php | +26 | −1 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/Campaign/Execution/ExecutionDao.php | +12 | −0 | Go to diff View file |
A | plugins/testmanagement/include/TestManagement/REST/v1/AutomatedTestsNotXmlException.php | +29 | −0 | Go to diff View file |
A | plugins/testmanagement/include/TestManagement/REST/v1/AutomatedTestsResultPATCHRepresentation.php | +35 | −0 | Go to diff View file |
M | plugins/testmanagement/include/TestManagement/REST/v1/CampaignsResource.class.php | +145 | −30 | Go to diff View file |
A | plugins/testmanagement/include/TestManagement/REST/v1/ExecutionFromAutomatedTestsUpdater.php | +122 | −0 | Go to diff View file |
A | plugins/testmanagement/include/TestManagement/REST/v1/ExecutionWithAutomatedTestData.php | +53 | −0 | Go to diff View file |
A | plugins/testmanagement/include/TestManagement/REST/v1/ExecutionWithAutomatedTestDataProvider.php | +84 | −0 | Go to diff View file |
A | plugins/testmanagement/include/TestManagement/REST/v1/ExtractedTestCaseFromJunit.php | +82 | −0 | Go to diff View file |
A | plugins/testmanagement/include/TestManagement/REST/v1/ListOfExecutionsWithAutomatedTestDataRetriever.php | +127 | −0 | Go to diff View file |
A | plugins/testmanagement/include/TestManagement/REST/v1/TestsDataFromJunitExtractor.php | +130 | −0 | Go to diff View file |
M | plugins/testmanagement/tests/rest/TestManagement/CampaignsTest.php | +26 | −0 | Go to diff View file |
A | plugins/testmanagement/tests/unit/TestManagement/REST/ExecutionFromAutomatedTestsUpdaterTest.php | +312 | −0 | Go to diff View file |
A | plugins/testmanagement/tests/unit/TestManagement/REST/ExecutionWithAutomatedTestDataProviderTest.php | +169 | −0 | Go to diff View file |
A | plugins/testmanagement/tests/unit/TestManagement/REST/ListOfExecutionsWithAutomatedTestDataRetrieverTest.php | +183 | −0 | Go to diff View file |
A | plugins/testmanagement/tests/unit/TestManagement/REST/TestsDataFromJunitExtractorTest.php | +122 | −0 | Go to diff View file |