Class AbstractStory
- java.lang.Object
-
- org.jbehave.core.ConfigurableEmbedder
-
- org.jbehave.core.junit.JUnitStory
-
- de.telekom.test.bddwebapp.stories.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 Summary
Constructors Constructor Description AbstractStory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.jbehave.core.configuration.Configurationconfiguration()org.jbehave.core.embedder.EmbedderconfiguredEmbedder()abstract org.springframework.context.ApplicationContextgetApplicationContext()booleanisExecutedByJUnitRunner()Optional<String>metaFilters()org.jbehave.core.steps.InjectableStepsFactorystepsFactory()voidsupportForSingleScenarioExecution(org.jbehave.core.embedder.Embedder embedder)Adding meta matcher for execution of single scenarios, e.g. with the intellij plugin "jbehave debug single scenario"-
Methods inherited from class org.jbehave.core.ConfigurableEmbedder
addSteps, addSteps, candidateSteps, hasConfiguration, hasStepsFactory, useConfiguration, useEmbedder, useStepsFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.telekom.test.bddwebapp.stories.config.FaultTolerantStoryPathResolver
removeStoryFromClassNameStoryPathResolver
-
Methods inherited from interface de.telekom.test.bddwebapp.steps.ScannedStepsFactory
getTestLevel, scannedStepsFactory, testLevelStepsFactory
-
Methods inherited from interface de.telekom.test.bddwebapp.stories.config.ScreenshotStoryReporterBuilder
screenshotStoryReporterBuilder
-
-
-
-
Method Detail
-
configuration
public org.jbehave.core.configuration.Configuration configuration()
- Specified by:
configurationin interfaceScannedStepsFactory- Overrides:
configurationin classorg.jbehave.core.ConfigurableEmbedder
-
stepsFactory
public org.jbehave.core.steps.InjectableStepsFactory stepsFactory()
- Overrides:
stepsFactoryin classorg.jbehave.core.ConfigurableEmbedder
-
configuredEmbedder
public org.jbehave.core.embedder.Embedder configuredEmbedder()
- Overrides:
configuredEmbedderin classorg.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-
-
getApplicationContext
public abstract org.springframework.context.ApplicationContext getApplicationContext()
- Specified by:
getApplicationContextin interfaceFaultTolerantStoryPathResolver- Specified by:
getApplicationContextin interfaceScannedStepsFactory- Specified by:
getApplicationContextin interfaceScreenshotStoryReporterBuilder
-
-