public class UnitilsHtmlReporter extends Object implements org.jbehave.core.reporters.StoryReporter
| Modifier and Type | Class and Description |
|---|---|
static class |
UnitilsHtmlReporter.OutputKeywords
OutputKeywords.
|
static class |
UnitilsHtmlReporter.OutputLifecycle
OutputLifecycle.
|
static class |
UnitilsHtmlReporter.OutputMeta
OutputMeta.
|
static class |
UnitilsHtmlReporter.OutputNarrative
OutputNarrative.
|
static class |
UnitilsHtmlReporter.OutputParameter
OutputParameter.
|
static class |
UnitilsHtmlReporter.OutputRestart
OutputRestart.
|
static class |
UnitilsHtmlReporter.OutputScenario
Outputscenario.
|
static class |
UnitilsHtmlReporter.OutputStep
OutputStep.
|
static class |
UnitilsHtmlReporter.OutputStory
OutputStory.
|
| Modifier and Type | Field and Description |
|---|---|
protected UnitilsHtmlReporter.OutputScenario |
outputScenario |
protected UnitilsHtmlReporter.OutputStory |
outputStory |
| Constructor and Description |
|---|
UnitilsHtmlReporter(File file,
org.jbehave.core.configuration.Keywords keywords) |
UnitilsHtmlReporter(File file,
org.jbehave.core.configuration.Keywords keywords,
String templatePath)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterExamples()
sets the currentExample to null.
|
void |
afterScenario() |
void |
afterStory(boolean givenStory)
Do some rapportation after the story.
|
void |
beforeExamples(List<String> steps,
org.jbehave.core.model.ExamplesTable table)
Sets the steps and the examplestable.
|
void |
beforeScenario(String title)
sets the title of the outputscenario.
|
void |
beforeStep(String step) |
void |
beforeStory(org.jbehave.core.model.Story story,
boolean givenStory)
Do all the things that need to be done before the story is reported.
|
protected FileWriter |
createFileWriter(File file)
Create a
FileWriter for a specific file. |
void |
dryRun() |
void |
example(Map<String,String> parameters)
sets the example & currentexample.
|
void |
failed(String step,
Throwable storyFailure)
adds a new failed outputstep to the outputscenario.
|
void |
failedOutcomes(String step,
org.jbehave.core.model.OutcomesTable table)
adds a new failed outputstep to the outputscenario.
|
protected freemarker.template.TemplateHashModel |
getEnumModels()
Get the enumModels from the
BeansWrapper. |
protected UnitilsHtmlReporter.OutputScenario |
getOutputScenario()
getter outputScenario
|
protected UnitilsHtmlReporter.OutputStory |
getOutputStory()
getter outputStory.
|
void |
givenStories(org.jbehave.core.model.GivenStories givenStories)
setter givenStories.
|
void |
givenStories(List<String> storyPaths)
Creates a new GivenStories for each path.
|
void |
ignorable(String step)
adds a new ignorable outputstep to the outputscenario.
|
void |
lifecyle(org.jbehave.core.model.Lifecycle lifecycle)
setter for the lifecycle.
|
void |
narrative(org.jbehave.core.model.Narrative narrative)
set the narrative.
|
protected Map<String,Object> |
newDataModel()
Create a new data model.
|
void |
notPerformed(String step)
adds a new not performed outputstep to the outputscenario.
|
void |
pending(String step)
adds a new pending step to the outputscenario.
|
void |
pendingMethods(List<String> methods)
setter pendingMethods
|
void |
restarted(String step,
Throwable cause)
adds a new
UnitilsHtmlReporter.OutputRestart step. |
void |
scenarioMeta(org.jbehave.core.model.Meta meta)
Sets the
Meta value. |
void |
scenarioNotAllowed(org.jbehave.core.model.Scenario scenario,
String filter)
sets the scenario as not allowed.
|
protected void |
setOutputScenario(UnitilsHtmlReporter.OutputScenario outputScenario)
outputScenario setter.
|
void |
storyCancelled(org.jbehave.core.model.Story story,
org.jbehave.core.model.StoryDuration storyDuration)
sets the story as cancelled.
|
void |
storyNotAllowed(org.jbehave.core.model.Story story,
String filter)
The story is not allowed.
|
void |
successful(String step)
Creates a new successful outputstep and adds it to the scenario.
|
protected void |
write(File file,
String resource,
Map<String,Object> dataModel)
Write the output to the file.
|
protected UnitilsHtmlReporter.OutputStory outputStory
protected UnitilsHtmlReporter.OutputScenario outputScenario
public UnitilsHtmlReporter(File file, org.jbehave.core.configuration.Keywords keywords)
public void storyNotAllowed(org.jbehave.core.model.Story story,
String filter)
storyNotAllowed in interface org.jbehave.core.reporters.StoryReporterstory - : the storyfilter - : filterStoryReporter.storyNotAllowed(org.jbehave.core.model.Story, java.lang.String)public void beforeStory(org.jbehave.core.model.Story story,
boolean givenStory)
beforeStory in interface org.jbehave.core.reporters.StoryReporterstory - : the storygivenStory - : is it the given story?StoryReporter.beforeStory(org.jbehave.core.model.Story, boolean)public void narrative(org.jbehave.core.model.Narrative narrative)
narrative in interface org.jbehave.core.reporters.StoryReporternarrative - : the narrative that needs to be setStoryReporter.narrative(org.jbehave.core.model.Narrative)public void lifecyle(org.jbehave.core.model.Lifecycle lifecycle)
lifecyle in interface org.jbehave.core.reporters.StoryReporterlifecycle - : the lifecycle that needs to be setStoryReporter.lifecyle(org.jbehave.core.model.Lifecycle)public void scenarioNotAllowed(org.jbehave.core.model.Scenario scenario,
String filter)
scenarioNotAllowed in interface org.jbehave.core.reporters.StoryReporterscenario - : the scenariofilter - : the filter for the outputscenarioStoryReporter.scenarioNotAllowed(org.jbehave.core.model.Scenario, java.lang.String)public void beforeScenario(String title)
beforeScenario in interface org.jbehave.core.reporters.StoryReportertitle - : the title of the outputscenario.StoryReporter.beforeScenario(java.lang.String)public void beforeStep(String step)
beforeStep in interface org.jbehave.core.reporters.StoryReporterstep - : the name of the stepStoryReporter.beforeStep(java.lang.String)public void successful(String step)
successful in interface org.jbehave.core.reporters.StoryReporterstep - : the name of the stepStoryReporter.successful(java.lang.String)public void ignorable(String step)
ignorable in interface org.jbehave.core.reporters.StoryReporterstep - : the name of the step.StoryReporter.ignorable(java.lang.String)public void pending(String step)
pending in interface org.jbehave.core.reporters.StoryReporterstep - : the name of the stepStoryReporter.pending(java.lang.String)public void notPerformed(String step)
notPerformed in interface org.jbehave.core.reporters.StoryReporterstep - : the name of the step.StoryReporter.notPerformed(java.lang.String)public void failed(String step, Throwable storyFailure)
failed in interface org.jbehave.core.reporters.StoryReporterstep - : the name of the step.storyFailure - : the story failure.StoryReporter.failed(java.lang.String, java.lang.Throwable)public void failedOutcomes(String step, org.jbehave.core.model.OutcomesTable table)
failedOutcomes in interface org.jbehave.core.reporters.StoryReporterstep - : the name of the step.table - : the OutcomesTable.StoryReporter.failedOutcomes(java.lang.String, org.jbehave.core.model.OutcomesTable)public void givenStories(org.jbehave.core.model.GivenStories givenStories)
givenStories in interface org.jbehave.core.reporters.StoryReportergivenStories - : the stories defined in the test.StoryReporter.givenStories(org.jbehave.core.model.GivenStories)public void givenStories(List<String> storyPaths)
givenStories in interface org.jbehave.core.reporters.StoryReporterstoryPaths - : list with all the stories defined in the test.StoryReporter.givenStories(java.util.List)public void scenarioMeta(org.jbehave.core.model.Meta meta)
Meta value.scenarioMeta in interface org.jbehave.core.reporters.StoryReportermeta - : The meta data defined in the story.StoryReporter.scenarioMeta(org.jbehave.core.model.Meta)public void beforeExamples(List<String> steps, org.jbehave.core.model.ExamplesTable table)
beforeExamples in interface org.jbehave.core.reporters.StoryReportersteps - : a list with steps.table - : the examplestable.StoryReporter.beforeExamples(java.util.List, org.jbehave.core.model.ExamplesTable)public void example(Map<String,String> parameters)
example in interface org.jbehave.core.reporters.StoryReporterparameters - : examplesStoryReporter.example(java.util.Map)public void afterExamples()
afterExamples in interface org.jbehave.core.reporters.StoryReporterStoryReporter.afterExamples()public void dryRun()
dryRun in interface org.jbehave.core.reporters.StoryReporterStoryReporter.dryRun()public void afterScenario()
afterScenario in interface org.jbehave.core.reporters.StoryReporterStoryReporter.afterScenario()public void pendingMethods(List<String> methods)
pendingMethods in interface org.jbehave.core.reporters.StoryReportermethods - : list of methods.StoryReporter.pendingMethods(java.util.List)public void restarted(String step, Throwable cause)
UnitilsHtmlReporter.OutputRestart step.restarted in interface org.jbehave.core.reporters.StoryReporterstep - : the name of the step.cause - : the reason why the step failed.StoryReporter.restarted(java.lang.String, java.lang.Throwable)public void storyCancelled(org.jbehave.core.model.Story story,
org.jbehave.core.model.StoryDuration storyDuration)
storyCancelled in interface org.jbehave.core.reporters.StoryReporterstory - : the story defined in your test.storyDuration - : the duration of the story.StoryReporter.storyCancelled(org.jbehave.core.model.Story, org.jbehave.core.model.StoryDuration)public void afterStory(boolean givenStory)
afterStory in interface org.jbehave.core.reporters.StoryReportergivenStory - : is this the given story?StoryReporter.afterStory(boolean)protected freemarker.template.TemplateHashModel getEnumModels()
BeansWrapper.TemplateHashModelprotected void write(File file, String resource, Map<String,Object> dataModel)
file - : the file where everything should be written to.resource - : the path of the resourcedataModel - : the datamodelprotected FileWriter createFileWriter(File file) throws IOException
FileWriter for a specific file.file - : the file for the filewriter.FileWriterIOExceptionprotected void setOutputScenario(UnitilsHtmlReporter.OutputScenario outputScenario)
outputScenario - the outputScenario to setprotected UnitilsHtmlReporter.OutputStory getOutputStory()
UnitilsHtmlReporter.OutputStoryprotected UnitilsHtmlReporter.OutputScenario getOutputScenario()
Copyright © 2015. All Rights Reserved.