From 75c189380a6c5ca137a9d6f3e4b18ed4a89bf87e Mon Sep 17 00:00:00 2001 From: lucashimpens Date: Wed, 10 Jul 2024 16:57:11 +0200 Subject: [PATCH] feat(tagstatistics): implementation of 1st screen --- .../DocumentationDatabaseService.java | 38 ++ .../webapp/ReportingCampaignStatistics.jsp | 107 ++++++ source/src/main/webapp/WEB-INF/web.xml | 1 + .../main/webapp/include/global/header.html | 1 + .../js/pages/ReportingCampaignStatistics.js | 324 ++++++++++++++++++ 5 files changed, 471 insertions(+) create mode 100644 source/src/main/webapp/ReportingCampaignStatistics.jsp create mode 100644 source/src/main/webapp/js/pages/ReportingCampaignStatistics.js diff --git a/source/src/main/java/org/cerberus/core/database/DocumentationDatabaseService.java b/source/src/main/java/org/cerberus/core/database/DocumentationDatabaseService.java index bac653e57..7ccd8600f 100644 --- a/source/src/main/java/org/cerberus/core/database/DocumentationDatabaseService.java +++ b/source/src/main/java/org/cerberus/core/database/DocumentationDatabaseService.java @@ -2484,6 +2484,8 @@ public ArrayList getSqlDocumentation() { b.append(",('page_header','menuReportingCampaignOverTime','','en','Campaign Report Over Time','',NULL)"); b.append(",('page_header','menuReportingCampaignOverTime','','fr','Rapport de Campagne dans le temps','',NULL)"); b.append(",('page_header','menuReportingCampaignOverTime','','fa','گزارش در طول زمان کمپین','',NULL)"); + b.append(",('page_header','menuReportingCampaignStatistic','','en','Campaign Statistics','',NULL)"); + b.append(",('page_header','menuReportingCampaignStatistic','','fr','Statistiques de Campagne','',NULL)"); b.append(",('page_header','menuReportingExecutionList','','en','Execution List','',NULL)"); b.append(",('page_header','menuReportingExecutionList','','fr','Liste d\\'Execution','',NULL)"); b.append(",('page_header','menuReportingExecutionList','','fa','فهرست اجرا','',NULL)"); @@ -2793,6 +2795,42 @@ public ArrayList getSqlDocumentation() { b.append(",('page_campaignreportovertime','title','','en','Campaign Execution reporting over Time','This page provide some execution stats over time.',NULL)"); b.append(",('page_campaignreportovertime','title','','fa','گزارش اجرای کمپین در طول زمان','این صفحه برخی از آمارهای اجرا را در طول زمان ارائه می دهد.',NULL)"); b.append(",('page_campaignreportovertime','title','','fr','Rapport d\\'execution des campagnes dans le temps','Cette page génère des rapports d\\'evolution de compteurs d\\'execution sur la durée',NULL)"); + b.append(",('page_campaignstatistics','title','','en','Campaign Statistics','This page provide some statistics at a campaign level to follow up.',NULL)"); + b.append(",('page_campaignstatistics','title','','fr','Statistiques de campagnes','Cette page propose des statistiques de campagne pour permettre le suivi.',NULL)"); + b.append(",('page_campaignstatistics','labelSystemSelect','','fr','Système','',NULL)"); + b.append(",('page_campaignstatistics','labelSystemSelect','','en','System','',NULL)"); + b.append(",('page_campaignstatistics','labelApplicationSelect','','fr','Application','',NULL)"); + b.append(",('page_campaignstatistics','labelApplicationSelect','','en','Application','',NULL)"); + b.append(",('page_campaignstatistics','labelGroup1Select','','fr','Groupe 1 de campagne','',NULL)"); + b.append(",('page_campaignstatistics','labelGroup1Select','','en','Campaign Group 1','',NULL)"); + b.append(",('page_campaignstatistics','labelFromPicker','','fr','Du','',NULL)"); + b.append(",('page_campaignstatistics','labelFromPicker','','en','From','',NULL)"); + b.append(",('page_campaignstatistics','labelToPicker','','fr','Au','',NULL)"); + b.append(",('page_campaignstatistics','labelToPicker','','en','To','',NULL)"); + b.append(",('page_campaignstatistics','buttonDetailByCountryEnv','','fr','Détail par environnement et pays','',NULL)"); + b.append(",('page_campaignstatistics','buttonDetailByCountryEnv','','en','Detail by country and environment','',NULL)"); + b.append(",('page_campaignstatistics','buttonLoad','','fr','Charger','',NULL)"); + b.append(",('page_campaignstatistics','buttonLoad','','en','Load','',NULL)"); + b.append(",('page_campaignstatistics','campaign_col','','fr','Campagne','',NULL)"); + b.append(",('page_campaignstatistics','campaign_col','','en','Campaign','',NULL)"); + b.append(",('page_campaignstatistics','systems_col','','fr','Systèmes','',NULL)"); + b.append(",('page_campaignstatistics','systems_col','','en','Systems','',NULL)"); + b.append(",('page_campaignstatistics','applications_col','','fr','Applications','',NULL)"); + b.append(",('page_campaignstatistics','applications_col','','en','Applications','',NULL)"); + b.append(",('page_campaignstatistics','group1_col','','fr','Groupe 1','',NULL)"); + b.append(",('page_campaignstatistics','group1_col','','en','Group 1','',NULL)"); + b.append(",('page_campaignstatistics','minDateStart_col','','fr','Date de début minimale de la première exécution','',NULL)"); + b.append(",('page_campaignstatistics','minDateStart_col','','en','Minimum start date','',NULL)"); + b.append(",('page_campaignstatistics','maxDateEnd_col','','fr','Date de fin maximale de la dernière exécution','',NULL)"); + b.append(",('page_campaignstatistics','maxDateEnd_col','','en','Maximum end date','',NULL)"); + b.append(",('page_campaignstatistics','avgOK_col','','fr','Pourcentage moyen de OK','',NULL)"); + b.append(",('page_campaignstatistics','avgOK_col','','en','Average percentage of OK','',NULL)"); + b.append(",('page_campaignstatistics','avgDuration_col','','fr','Durée moyenne','',NULL)"); + b.append(",('page_campaignstatistics','avgDuration_col','','en','Average duration','',NULL)"); + b.append(",('page_campaignstatistics','avgReliability_col','','fr','Fiabilité moyenne','',NULL)"); + b.append(",('page_campaignstatistics','avgReliability_col','','en','Average reliability','',NULL)"); + b.append(",('page_campaignstatistics','avgNbExeUsefull_col','','fr','Nombre moyen d\\'exécutions utiles','',NULL)"); + b.append(",('page_campaignstatistics','avgNbExeUsefull_col','','en','Average number of usefull executions','',NULL)"); b.append(",('page_robot','button_create','','en','Create new Robot','',NULL)"); b.append(",('page_robot','button_create','','fa','ایجاد ربات جدید','',NULL)"); b.append(",('page_robot','button_create','','fr','Créer un nouveau Robot','',NULL)"); diff --git a/source/src/main/webapp/ReportingCampaignStatistics.jsp b/source/src/main/webapp/ReportingCampaignStatistics.jsp new file mode 100644 index 000000000..1786a53bd --- /dev/null +++ b/source/src/main/webapp/ReportingCampaignStatistics.jsp @@ -0,0 +1,107 @@ +<%-- + + Cerberus Copyright (C) 2013 - 2017 cerberustesting + DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + + This file is part of Cerberus. + + Cerberus is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Cerberus is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Cerberus. If not, see . + +--%> +<%@page contentType="text/html" pageEncoding="UTF-8"%> + + + + + <%@ include file="include/global/dependenciesInclusions.html" %> + Campaign statistics + + + + + + + + <%@ include file="include/global/header.html" %> +
+ <%@ include file="include/global/messagesArea.html"%> + <%@ include file="include/utils/modal-confirmation.html"%> + +

Campaign Statistics

+
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ +
+ + + + +
+
+
+
+
+ +
+ + + + +
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
+
+ + + diff --git a/source/src/main/webapp/WEB-INF/web.xml b/source/src/main/webapp/WEB-INF/web.xml index 9ee5562c4..98f5679ba 100644 --- a/source/src/main/webapp/WEB-INF/web.xml +++ b/source/src/main/webapp/WEB-INF/web.xml @@ -142,6 +142,7 @@ /ReportingExecutionByTag.jsp /ReportingExecutionOverTime.jsp /ReportingCampaignOverTime.jsp + /ReportingCampaignStatistics.jsp /TestCaseExecutionQueueList.jsp /Test.jsp /TestCaseScript.jsp diff --git a/source/src/main/webapp/include/global/header.html b/source/src/main/webapp/include/global/header.html index 5364809c0..e95221af2 100644 --- a/source/src/main/webapp/include/global/header.html +++ b/source/src/main/webapp/include/global/header.html @@ -65,6 +65,7 @@
  • Execution Report Over Time
  • Campaign Execution Report
  • Campaign Report Over Time
  • +