Package org.jbehave.core.embedder

Examples of org.jbehave.core.embedder.StoryControls


    @Override
    public Configuration configuration() {
        return new SeleniumConfiguration().useSeleniumContext(seleniumContext)
                .usePendingStepStrategy(pendingStepStrategy)
                .useStoryControls(new StoryControls().doResetStateBeforeScenario(false)).useStepMonitor(stepMonitor)
                .useStoryLoader(new LoadFromClasspath(EtsyDotComStories.class))
                .useStoryReporterBuilder(reporterBuilder);
    }
View Full Code Here


        .withFailureTraceCompression(true).withDefaultFormats().withFormats(formats)
        .withCrossReference(crossReference);

    Configuration configuration = new SeleniumConfiguration().useSeleniumContext(seleniumContext)
        .useFailureStrategy(new FailingUponPendingStep())
        .useStoryControls(new StoryControls().doResetStateBeforeScenario(false)).useStepMonitor(stepMonitor)
        .useStoryLoader(new LoadFromClasspath(this.getClass()))
        .useStoryReporterBuilder(reporterBuilder);
    useConfiguration(configuration);

    ApplicationContext context = new SpringApplicationContextFactory("applicationContext-tests.xml").createApplicationContext();
View Full Code Here

    // add custom coverters
    parameterConverters.addConverters(new ExamplesTableConverter(
        examplesTableFactory));
    viewResources.put("decorateNonHtml", "true");
    useStoryControls(
        new StoryControls().doDryRun(false)
            .doSkipScenariosAfterFailure(false)
            .doResetStateBeforeStory(true)
            .useStoryMetaPrefix("story_")
            .useScenarioMetaPrefix("scenario_"))
        .useStoryLoader(new LoadFromRelativeFile(codeLocation))
View Full Code Here

            new StoryReporterBuilder()
                .withCodeLocation(codeLocationFromClass(embeddableClass))
                .withDefaultFormats().withFailureTrace(false)
                .withFormats(CONSOLE,XML,HTML,TXT))
        .useParameterConverters(parameterConverters)
        .useStoryControls(new StoryControls().doSkipBeforeAndAfterScenarioStepsIfGivenStory(true).
            doSkipScenariosAfterFailure(false).doResetStateBeforeStory(false).doResetStateBeforeScenario(true));
  }
View Full Code Here

TOP

Related Classes of org.jbehave.core.embedder.StoryControls

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.