java.lang.Object
net.tangly.bdd.engine.StoryRun
public class StoryRun
extends java.lang.Object
Recall that our custom extension generates BDD reports after executing the tests. Some parts of these reports are pulled from the elements of the
“@Story” annotation. We use the beforeAll callback to store these strings. Later, at the end of the execution lifecycle, we retrieve these strings
to generate reports. A simple POJO is used for this purpose. We name this class “StoryDetails”. The following code snippet demonstrates the process
of creating an instance of this class and save the elements of the annotation into the instance.
-
Constructor Summary
Constructors Constructor Description StoryRun(@NotNull java.lang.Class<?> clazz) -
Method Summary
Modifier and Type Method Description voidaddScene(Scene scene)java.lang.Class<?>clazz()java.lang.Stringdescription()java.lang.StringfeatureDescription()java.lang.StringfeatureId()java.lang.StringfeatureName()java.util.List<java.lang.String>featureTags()ScenefindSceneByMethodName(java.lang.String name)java.lang.Stringid()java.lang.Stringname()java.lang.Packagepackages()java.util.List<Scene>scenes()java.util.List<java.lang.String>storyTags()
-
Constructor Details
-
StoryRun
public StoryRun(@NotNull @NotNull java.lang.Class<?> clazz)
-
-
Method Details
-
name
public java.lang.String name() -
id
public java.lang.String id() -
description
public java.lang.String description() -
storyTags
public java.util.List<java.lang.String> storyTags() -
clazz
public java.lang.Class<?> clazz() -
featureName
public java.lang.String featureName() -
featureId
public java.lang.String featureId() -
featureDescription
public java.lang.String featureDescription() -
featureTags
public java.util.List<java.lang.String> featureTags() -
packages
public java.lang.Package packages() -
addScene
-
scenes
-
findSceneByMethodName
-