Class AbstractStory

  • All Implemented Interfaces:
    ScannedStepsFactory, FaultTolerantStoryPathResolver, ScreenshotStoryReporterBuilder, org.jbehave.core.Embeddable

    public abstract class AbstractStory
    extends org.jbehave.core.junit.JUnitStory
    implements ScannedStepsFactory, ScreenshotStoryReporterBuilder, FaultTolerantStoryPathResolver
    Add the following features to the story execution: - Screenshot build - Story path hardening - Steps factory to find steps by annotation - Most useful embedder configuration for the test framework
    Author:
    Daniel Keiss <daniel.keiss@telekom.de>, Nils Villwock - Idea to disable report generation after story execution to prevent false positive

    Copyright (c) 2020 Daniel Keiss, Deutsche Telekom IT GmbH This file is distributed under the conditions of the Apache License, Version 2.0. For details see the file license on the toplevel.

    • Constructor Detail

      • AbstractStory

        public AbstractStory()
    • Method Detail

      • configuration

        public org.jbehave.core.configuration.Configuration configuration()
        Specified by:
        configuration in interface ScannedStepsFactory
        Overrides:
        configuration in class org.jbehave.core.ConfigurableEmbedder
      • stepsFactory

        public org.jbehave.core.steps.InjectableStepsFactory stepsFactory()
        Overrides:
        stepsFactory in class org.jbehave.core.ConfigurableEmbedder
      • configuredEmbedder

        public org.jbehave.core.embedder.Embedder configuredEmbedder()
        Overrides:
        configuredEmbedder in class org.jbehave.core.ConfigurableEmbedder
      • isExecutedByJUnitRunner

        public boolean isExecutedByJUnitRunner()
      • supportForSingleScenarioExecution

        public void supportForSingleScenarioExecution​(org.jbehave.core.embedder.Embedder embedder)
        Adding meta matcher for execution of single scenarios, e.g. with the intellij plugin "jbehave debug single scenario"
        Parameters:
        embedder -