|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.report.core.ResumeReporter
public class ResumeReporter
Reporter which accumulates resumes over execution.
| Field Summary | |
|---|---|
static String |
FEATURE_DUMPERS
Feature to set dumpers of report. |
protected static int |
PERCENTAGE
Divisor. |
| Constructor Summary | |
|---|---|
ResumeReporter()
|
|
| Method Summary | |
|---|---|
ResumeReporter |
add(IResumeDumper dumper)
Add a dumper of resumes. |
void |
analyse(IContext context,
IResultSet result,
Map<String,Object> model)
Add information to the reporter. |
double |
asPercentage(Long time)
Returns a time as percentage. |
protected Resume |
createInstance(IResultSet result,
Map<String,Object> model)
Create a resume instance. |
List<IResumeDumper> |
getDumpers()
Get dumpers list. |
int |
getIndex()
Get resumes index. |
Status |
getResultStatus()
Get execution status. |
List<Resume> |
getResumes()
Get resume set. |
Map<Status,Integer> |
getStatus()
Map of status counts. |
Long |
getTotal()
Get total execution time. |
Map<ActionType,Integer> |
getTypes()
Map if action types. |
protected Resume |
newResume(IContext context,
IResultSet result,
Map<String,Object> model)
Create a resume of result. |
protected List<Resume> |
orderedList(List<Resume> list,
Comparator<Resume> comparator)
Creates a copy of the resume list. |
Object |
partial(SRServices services)
Short information about report. |
void |
report(SRServices services)
Dump report information. |
protected void |
setFeatures(SRServices services)
Prepare feature settings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int PERCENTAGE
public static final String FEATURE_DUMPERS
| Constructor Detail |
|---|
public ResumeReporter()
| Method Detail |
|---|
public Long getTotal()
public int getIndex()
public Status getResultStatus()
public Map<Status,Integer> getStatus()
public Map<ActionType,Integer> getTypes()
public List<Resume> getResumes()
public List<IResumeDumper> getDumpers()
public ResumeReporter add(IResumeDumper dumper)
dumper - A dumper.
protected void setFeatures(SRServices services)
services - Services.
public void analyse(IContext context,
IResultSet result,
Map<String,Object> model)
IReporter
analyse in interface IReportercontext - Test context.result - The result.model - The model.public Object partial(SRServices services)
IReporter
partial in interface IReporterservices - The services instance to be used. This is required, since
report is made on shutdown process, where
SRServices.get() is not available.
protected Resume newResume(IContext context,
IResultSet result,
Map<String,Object> model)
context - A test context.result - The result.model - The model.
protected Resume createInstance(IResultSet result,
Map<String,Object> model)
result - The result set.model - The model.
public void report(SRServices services)
IReporter
report in interface IReporterservices - The services instance to be used. This is required, since
report is made on shutdown process, where
SRServices.get() is not available.
protected List<Resume> orderedList(List<Resume> list,
Comparator<Resume> comparator)
list - The list to be ordered.comparator - The comparator.
public double asPercentage(Long time)
time - The time.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||