org.apache.jmeter.report.engine

Class StandardReportEngine

Implemented Interfaces:
Runnable, Serializable, ReportEngine

public class StandardReportEngine
extends Object
implements Runnable, Serializable, ReportEngine

private Collection replaceValues(PropertyIterator iter, ValueTransformer transform) throws InvalidVariableException { List props = new LinkedList(); while (iter.hasNext()) { JMeterProperty val = iter.next(); if (log.isDebugEnabled()) { log.debug("About to replace in property of type: " + val.getClass() + ": " + val); } if (val instanceof StringProperty) { // Must not convert TestElement.gui_class etc if (!val.getName().equals(TestElement.GUI_CLASS) && !val.getName().equals(TestElement.TEST_CLASS)) { val = transform.transformValue(val); if (log.isDebugEnabled()) { log.debug("Replacement result: " + val); } } } else if (val instanceof MultiProperty) { MultiProperty multiVal = (MultiProperty) val; Collection newValues = replaceValues(multiVal.iterator(), transform); multiVal.clear(); Iterator propIter = newValues.iterator(); while (propIter.hasNext()) { multiVal.addProperty((JMeterProperty) propIter.next()); } if (log.isDebugEnabled()) { log.debug("Replacement result: " + multiVal); } } else { if (log.isDebugEnabled()) { log.debug("Won't replace " + val); } } props.add(val); } return props; }

Constructor Summary

StandardReportEngine()

Method Summary

void
configure(HashTree testPlan)
void
exit()
void
reset()
void
run()
void
runReport()
void
stopReport()

Constructor Details

StandardReportEngine

public StandardReportEngine()

Method Details

configure

public void configure(HashTree testPlan)
Specified by:
configure in interface ReportEngine

exit

public void exit()
Specified by:
exit in interface ReportEngine

reset

public void reset()
Specified by:
reset in interface ReportEngine

run

public void run()

runReport

public void runReport()
            throws JMeterEngineException
Specified by:
runReport in interface ReportEngine

stopReport

public void stopReport()
Specified by:
stopReport in interface ReportEngine

Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.