Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions cypress/e2e/tests/targets.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
46 changes: 46 additions & 0 deletions cypress/fixtures/json/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}
}