Skip to content

Commit

Permalink
Fixed #2199
Browse files Browse the repository at this point in the history
Execution performance graph also display non OK results.
  • Loading branch information
vertigo17 committed Jun 6, 2022
1 parent 9fa2f7b commit fa3fb7e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected void processRequest(HttpServletRequest request, HttpServletResponse re

JSONObject jsonResponse = new JSONObject();
testCaseExecutionHttpStatService = appContext.getBean(ITestCaseExecutionHttpStatService.class);
answer = testCaseExecutionHttpStatService.readByCriteria("OK", ltc, fromD, toD, system, countries, environments, robotDeclis, parties, types, units);
answer = testCaseExecutionHttpStatService.readByCriteria(null, ltc, fromD, toD, system, countries, environments, robotDeclis, parties, types, units);
jsonResponse = answer.getItem();

jsonResponse.put("messageType", answer.getResultMessage().getMessage().getCodeString());
Expand Down
12 changes: 8 additions & 4 deletions source/src/main/webapp/js/pages/ReportingExecutionOverTime.js
Original file line number Diff line number Diff line change
Expand Up @@ -581,17 +581,21 @@ function buildGraphs(data) {
let d = [];
lend = c.points.length;
for (var j = 0; j < lend; j++) {
let p = {x: c.points[j].x, y: c.points[j].y, id: c.points[j].exe};
let p = {x: c.points[j].x, y: c.points[j].y, id: c.points[j].exe, controlStatus: c.points[j].exeControlStatus};
d.push(p);
}
let lab = getLabel(c.key.testcase.description, c.key.country, c.key.environment, c.key.robotdecli, c.key.unit, c.key.party, c.key.type, c.key.testcase.testcase);
var dataset = {
label: lab,
backgroundColor: get_Color_fromindex(i),
hoverBackgroundColor: get_Color_fromindex(i),
pointBackgroundColor: function (d) {
var index = d.dataIndex;
var value = d.dataset.data[index];
return getExeStatusRowColor(value.controlStatus);
},
borderColor: get_Color_fromindex(i),
pointRadius: 2,
pointHoverRadius: 5,
pointRadius: 3,
pointHoverRadius: 6,
hitRadius: 10,
fill: false,
data: d
Expand Down

0 comments on commit fa3fb7e

Please sign in to comment.