What would be the best way to create a custom report file?
The built-in standard report is created from the tester class in the method onStop(long processId):
client.createReport(processId, reportFile);
I would like to create my own report with various summary statistics in CSV text format just after this.
However the problem I've come across is that I cannot access the strategy object from which I wish to retrieve variable values.
I tried using client.getStartedStrategies() which returns a Map of IDs and strategy objects, however once in the onStop method I think the strategy that had just stopped has already been removed from the Map, as I get a NullPointerException when I use the processId as the key.
So is there a way to access the strategy object from the tester class' onStop method in order to create a custom report?
Or must I create the report from within the strategy class itself? It works however I thought it would be a better design to do it from the tester class, as that is where the standard report is created from.