|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jmeter.testelement.AbstractTestElement org.apache.jmeter.report.writers.AbstractReportWriter
public abstract class AbstractReportWriter
The abstract report writer provides the common implementation for subclasses to reuse.
Field Summary | |
---|---|
static String |
TARGET_DIRECTORY
|
Fields inherited from interface org.apache.jmeter.testelement.TestElement |
---|
COMMENTS, ENABLED, GUI_CLASS, NAME, TEST_CLASS |
Constructor Summary | |
---|---|
AbstractReportWriter()
|
Method Summary | |
---|---|
void |
archiveDirectory()
if the target output directory already exists, archive it |
String |
getDayString()
return the day in YYYYMMDD format |
String |
getTargetDirectory()
The method simply returns the target directory and doesn't validate it. the abstract class expects some other class will validate the target directory. |
void |
makeDirectory()
|
void |
setTargetDirectory(String directory)
Set the target directory where the report should be saved |
abstract ReportSummary |
writeReport(TestElement element)
Subclasses need to implement this method and provide the necessary logic to produce a ReportSummary object and write the report |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TARGET_DIRECTORY
Constructor Detail |
---|
public AbstractReportWriter()
Method Detail |
---|
public abstract ReportSummary writeReport(TestElement element)
writeReport
in interface ReportWriter
public String getTargetDirectory()
getTargetDirectory
in interface ReportWriter
public void setTargetDirectory(String directory)
setTargetDirectory
in interface ReportWriter
public void makeDirectory()
public void archiveDirectory()
public String getDayString()
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |