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(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) |
public SauceContextStoryReporter(WebDriverProvider webDriverProvider, SeleniumContext seleniumContext, Map<String,String> storyToSauceUrlMap)
public void beforeStory(Story story,
boolean givenStory)
public void beforeScenario(String title)
beforeScenario in class SeleniumContextStoryReporterpublic void pending(String step)
public void afterScenario()
public void afterStory(boolean givenStory)
protected String readResponseLinesFromSauceLabToGetJobUrl(BufferedReader reader) throws IOException
IOExceptionprotected String processSauceLabsResponseLine(String responseLineFromSauceLabs)
responseLineFromSauceLabs - a line from the responseprotected String getBuildId()
protected String getJobName()
protected String getJobTags()
Copyright © 2003–2017. All rights reserved.