Hi all,

in none of the example I could found an example using
the SauceContextStoryReporter.

1. I would like to know if the use of SauceContextStoryReporter solves my
problem beeing able to populate the scenario/story name to saucelabs?

2. What (else) is the SauceContextStoryReporter good for?

3. How do I us it?
I am wondering how I create the storyMaps.This is the code I have so far:
----------------------------------------------------------------------------------------------------------------------------

public class WebStoriesRunner extends JUnitStories {

public WebStoriesRunner() {

[....]

            HashMap<String,String> *story2SauceUrlMap *= *???*

            *reporter *= new SauceContextStoryReporter(driverProvider,
context, story2SauceUrlMap);

[....]

}

@Override
    public Configuration configuration() {
        Class<? extends Embeddable> embeddableClass = this.getClass();
        return new SeleniumConfiguration()
                .useSeleniumContext(context)
                .useWebDriverProvider(driverProvider)
                .useStepMonitor(new SeleniumStepMonitor(contextView,
context, new SilentStepMonitor()))
                .useStoryLoader(new LoadFromClasspath(embeddableClass))
                .useStoryReporterBuilder(new StoryReporterBuilder()

.withCodeLocation(codeLocationFromClass(embeddableClass))
                        .withDefaultFormats().withFormats(formats)
                        .withFailureTrace(true)
                        .withReporters(*reporter*)
                        .withFailureTraceCompression(true));
    }
}

----------------------------------------------------------------------------------------------------------------------------

Thanks for your help,

Olmo

Reply via email to