public class SauceContextStoryReporter extends SeleniumContextStoryReporter
StoryReporter
that passes back to SauceLabs the executed job results.Constructor and Description |
---|
SauceContextStoryReporter(WebDriverProvider webDriverProvider,
SeleniumContext seleniumContext,
Map<String,String> storyToSauceUrlMap) |
Modifier and Type | Method and Description |
---|---|
void |
afterScenario() |
void |
afterStory(boolean givenStory) |
void |
beforeScenario(String title) |
void |
beforeStory(org.jbehave.core.model.Story story,
boolean givenStory) |
void |
failed(String step,
Throwable cause) |
protected String |
getBuildId() |
protected String |
getJobName()
The name of the job.
|
protected String |
getJobTags()
A set of tags to apply to the job, like so:
"foo", "bar"
|
void |
pending(String step) |
protected String |
processSauceLabsResponseLine(String responseLineFromSauceLabs)
By deault, this prints a URL to the Job on SauceLabs.
|
protected String |
readResponseLinesFromSauceLabToGetJobUrl(BufferedReader reader) |
afterExamples, beforeExamples, beforeStep, dryRun, example, failedOutcomes, givenStories, givenStories, ignorable, lifecyle, narrative, notPerformed, pendingMethods, restarted, scenarioMeta, scenarioNotAllowed, storyCancelled, storyNotAllowed, successful
public SauceContextStoryReporter(WebDriverProvider webDriverProvider, SeleniumContext seleniumContext, Map<String,String> storyToSauceUrlMap)
public void beforeStory(org.jbehave.core.model.Story story, boolean givenStory)
beforeStory
in interface org.jbehave.core.reporters.StoryReporter
beforeStory
in class org.jbehave.core.reporters.NullStoryReporter
public void beforeScenario(String title)
beforeScenario
in interface org.jbehave.core.reporters.StoryReporter
beforeScenario
in class SeleniumContextStoryReporter
public void failed(String step, Throwable cause)
failed
in interface org.jbehave.core.reporters.StoryReporter
failed
in class org.jbehave.core.reporters.NullStoryReporter
public void pending(String step)
pending
in interface org.jbehave.core.reporters.StoryReporter
pending
in class org.jbehave.core.reporters.NullStoryReporter
public void afterScenario()
afterScenario
in interface org.jbehave.core.reporters.StoryReporter
afterScenario
in class org.jbehave.core.reporters.NullStoryReporter
public void afterStory(boolean givenStory)
afterStory
in interface org.jbehave.core.reporters.StoryReporter
afterStory
in class org.jbehave.core.reporters.NullStoryReporter
protected String readResponseLinesFromSauceLabToGetJobUrl(BufferedReader reader) throws IOException
IOException
protected String processSauceLabsResponseLine(String responseLineFromSauceLabs)
responseLineFromSauceLabs
- a line from the responseprotected String getBuildId()
protected String getJobName()
protected String getJobTags()
Copyright © 2013. All Rights Reserved.