diff --git a/cypress/e2e/tests/targets.test.ts b/cypress/e2e/tests/targets.test.ts index 4afd9a3..65618d5 100644 --- a/cypress/e2e/tests/targets.test.ts +++ b/cypress/e2e/tests/targets.test.ts @@ -127,6 +127,54 @@ describe(["tier1"], "Analysis on different targets", function () { pf4reports.validateIncidents(trimAppNames(projectData["apps"]), projectData["incidents"]); }); + it("Analysis for target Openjdk21", function () { + let projectData = getRandomApplicationData(this.projectData["Openjdk21"]); + const project = new Projects(projectData); + project.create(); + const analysis = new Analysis(projectData["name"]); + analysis.runAnalysis(); + analysis.verifyLatestAnalysisStatus(completed); + analysis.openReport(); + const pf4reports = new PF4Reports(); + pf4reports.validateStoryPoints( + trimAppNames(projectData["apps"]), + projectData["storyPoints"] + ); + pf4reports.validateIncidents(trimAppNames(projectData["apps"]), projectData["incidents"]); + }); + + it("Analysis for target camel4", function () { + let projectData = getRandomApplicationData(this.projectData["Camel4"]); + const project = new Projects(projectData); + project.create(); + const analysis = new Analysis(projectData["name"]); + analysis.runAnalysis(); + analysis.verifyLatestAnalysisStatus(completed); + analysis.openReport(); + const pf4reports = new PF4Reports(); + pf4reports.validateStoryPoints( + trimAppNames(projectData["apps"]), + projectData["storyPoints"] + ); + pf4reports.validateIncidents(trimAppNames(projectData["apps"]), projectData["incidents"]); + }); + + it("Analysis for target jws6", function () { + let projectData = getRandomApplicationData(this.projectData["JWS6"]); + const project = new Projects(projectData); + project.create(); + const analysis = new Analysis(projectData["name"]); + analysis.runAnalysis(); + analysis.verifyLatestAnalysisStatus(completed); + analysis.openReport(); + const pf4reports = new PF4Reports(); + pf4reports.validateStoryPoints( + trimAppNames(projectData["apps"]), + projectData["storyPoints"] + ); + pf4reports.validateIncidents(trimAppNames(projectData["apps"]), projectData["incidents"]); + }); + after("Teardown", function () { login(); Projects.deleteAllProjects(); diff --git a/cypress/fixtures/json/data.json b/cypress/fixtures/json/data.json index b760393..8b46aef 100644 --- a/cypress/fixtures/json/data.json +++ b/cypress/fixtures/json/data.json @@ -237,5 +237,51 @@ "total": 103 } ] + }, + + "Openjdk21": { + "name": "Openjdk21", + "apps": [ + "spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar" + ], + "targets": ["openjdk21"], + "storyPoints": [27], + "incidents": [ + { + "mandatory": 1, + "potential": 22, + "informational": 61, + "total": 84 + } + ] + }, + + "Camel4": { + "name": "camel-4", + "apps": ["customers-tomcat-0.0.1-SNAPSHOT.war"], + "targets": ["camel:4.0"], + "storyPoints": [6], + "incidents": [ + { + "potential": 6, + "informational": 48, + "total": 54 + } + ] + }, + + "JWS6": { + "name": "JWS6", + "apps": ["camunda-bpm-spring-boot-starter-example-war-2.0.0.war"], + "targets": ["JBoss Web Server 6"], + "storyPoints": [1219], + "incidents": [ + { + "mandatory": 1157, + "potential": 9, + "informational": 110, + "total": 1280 + } + ] } }