- labels: --> Grinder Analyzer
I suppose the java velocity plugin classes exists, because you cannot write velocity compatible getter methods in a jython class. However, velocity context accepts a normal java Maps and Lists, so I have something like:
class AnalyzerPlugin(HashMap):
def __init__(self, p):
self.put("dataRows",ArrayList())
self.put("totalsRow", None)
self.put("props", p)
columnNames = [
"Transaction Name", "Tests Passed", "Tests w/ Errors", "Pass Rate", "Mean Response Time", "Response time standard dev.", "Mean Response Length", "Bytes per Sec", "Mean Time Resolve Host", "Mean Time Establish Connection",
"Mean Time to First Byte"
]
#columnNames = array(columnNames, String.class)
self.put ("columnNames", [])
self.put("graphs", [])
def addColumnName(self,name):
self.get("columnNames").append(name)
def addDataRow(self, r):
self.get("dataRows").add(r)
def setTotalsRow(self, r):
self.put("totalsRow", r)
def addGraph(self, id, graph):
self.get("graphs").append(ReportCell(id, id, graph))