From 772a99faece5859a8e6d5348eec3aeaf1fe86112 Mon Sep 17 00:00:00 2001 From: Willi Goesgens Date: Mon, 22 Sep 2014 15:54:02 +0200 Subject: [PATCH] try another place to add our performance results in the xml. --- js/common/modules/reportgenerator.js | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/js/common/modules/reportgenerator.js b/js/common/modules/reportgenerator.js index b301e8dd11..5650c8775f 100644 --- a/js/common/modules/reportgenerator.js +++ b/js/common/modules/reportgenerator.js @@ -21,25 +21,37 @@ var generatePerfReport = function (reportName, testdata, longdesc) { if (testdata.hasOwnProperty(testname)) { for (var testrunner in testdata[testname]) { if (testdata[testname].hasOwnProperty(testrunner)) { - x = x + '\t\n'; - x = x + '\t\t\n'; - x = x + '\t\t\n\t\t\tAQL\n\t\t\n'; - var oneResultSet = testdata[testname][testrunner][0].calced; + + + + + var j = 0; for (i = 0; i < measurements.length; i++) { if (oneResultSet.hasOwnProperty([measurements[i]])) { - var s = oneResultSet[measurements[0]].sum; - var t = oneResultSet[measurements[0]].avg; + var s = oneResultSet[measurements[i]].sum; + var t = oneResultSet[measurements[i]].avg; + x = x + '\t\n'; + x = x + '\t\t\n'; + x = x + '\t\t\n\t\t\tAQL\n\t\t\n'; + x += '\t\tSum ' + measurements[i] + '\n'; j += 1; x += '\t\tAverage ' + measurements[i] + '\n'; j += 1; + + x = x + '\t\t\n'; + x += '\t\t\t\n'; + x += '\t\t\t\n'; + x += '\t\t\t\n'; + x += '\t\t\t\n'; + + x += '\t\t\n'; + x = x + '\t\n'; } } - x = x + '\t\t\n\t\t\t\n\t\t\n'; - x = x + '\t\n'; } } }