Skip to content

Commit

Permalink
feat(tagstatistics): implementation of 1st screen
Browse files Browse the repository at this point in the history
  • Loading branch information
lucashimpens committed Jul 10, 2024
1 parent ffc35b9 commit 75c1893
Show file tree
Hide file tree
Showing 5 changed files with 471 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2484,6 +2484,8 @@ public ArrayList<String> 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)");
Expand Down Expand Up @@ -2793,6 +2795,42 @@ public ArrayList<String> 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)");
Expand Down
107 changes: 107 additions & 0 deletions source/src/main/webapp/ReportingCampaignStatistics.jsp
Original file line number Diff line number Diff line change
@@ -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 <http://www.gnu.org/licenses/>.
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="include/global/dependenciesInclusions.html" %>
<title id="pageTitle">Campaign statistics</title>
<script type="text/javascript" src="dependencies/Tinymce-6.7.0/tinymce.min.js"></script>
<script type="text/javascript" src="dependencies/Moment-2.30.1/moment-with-locales.min.js"></script>
<script type="text/javascript" src="dependencies/Bootstrap-datetimepicker-4.17.47/bootstrap-datetimepicker.min.js"></script>
<link rel="stylesheet" href="dependencies/Bootstrap-datetimepicker-4.17.47/bootstrap-datetimepicker.min.css" />
<script type="text/javascript" src="js/pages/ReportingCampaignStatistics.js"></script>
</head>
<body>
<%@ include file="include/global/header.html" %>
<div class="container-fluid center" id="page-layout">
<%@ include file="include/global/messagesArea.html"%>
<%@ include file="include/utils/modal-confirmation.html"%>

<h1 class="page-title-line" id="title">Campaign Statistics</h1>
<div class="panel panel-default">
<div class="panel-body" id="filters">
<div class='col-md-4'>
<div class="form-group">
<label for="system-select" id="labelSystemSelect">Système</label>
<select id="system-select" class="form-control" multiple="multiple">
</select>
</div>
</div>
<div class='col-md-4'>
<div class="form-group">
<label for="application-select" id="labelApplicationSelect">Application</label>
<select id="application-select" class="form-control" multiple="multiple">
</select>
</div>
</div>
<div class='col-md-4'>
<div class="form-group">
<label for="group1-select" id="labelGroup1Select">Group 1</label>
<select id="group1-select" class="form-control" multiple="multiple">
</select>
</div>
</div>
<div class='col-md-4'>
<div class="form-group">
<label for="frompicker" id="labelFromPicker">From</label>
<div class='input-group date' id='frompicker'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<div class='col-md-4'>
<div class="form-group">
<label for="topicker" id="labelToPicker">To</label>
<div class='input-group date' id='topicker'>
<input type='text' class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
</div>
<div class="col-sm-2 col-md-2">
<div class="input-group-btn ">
<button type="button" class="btn btn-primary btn-block marginTop20" id="loadbutton">Load</button>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-body" id="tagStatisticList">
<table id="tagStatisticTable" class="table table-bordered table-hover display" name="tagStatisticTable"></table>
<div class="marginBottom20"></div>
</div>
</div>
<footer class="footer">
<div class="container-fluid" id="footer"></div>
</footer>
</div>
<script>
</script>
</body>
</html>
1 change: 1 addition & 0 deletions source/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
<url-pattern>/ReportingExecutionByTag.jsp</url-pattern>
<url-pattern>/ReportingExecutionOverTime.jsp</url-pattern>
<url-pattern>/ReportingCampaignOverTime.jsp</url-pattern>
<url-pattern>/ReportingCampaignStatistics.jsp</url-pattern>
<url-pattern>/TestCaseExecutionQueueList.jsp</url-pattern>
<url-pattern>/Test.jsp</url-pattern>
<url-pattern>/TestCaseScript.jsp</url-pattern>
Expand Down
1 change: 1 addition & 0 deletions source/src/main/webapp/include/global/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<li><a name="menu" id="menuReportingExecutionOverTime" href="ReportingExecutionOverTime.jsp">Execution Report Over Time</a></li>
<li><a name="menu" id="menuReportingExecutionByTag" href="ReportingExecutionByTag.jsp">Campaign Execution Report</a></li>
<li><a name="menu" id="menuReportingCampaignOverTime" href="ReportingCampaignOverTime.jsp">Campaign Report Over Time</a></li>
<!--<li><a name="menu" id="menuReportingCampaignStatistic" href="ReportingCampaignStatistics.jsp">Campaign Statistics</a></li>-->
</ul>
</li>
<li class ="navbar-side-choice IntegratorRO navlist" id="navMenuApplication" style="display:none">
Expand Down
Loading

0 comments on commit 75c1893

Please sign in to comment.