Class StoryRun

java.lang.Object
net.tangly.spec.bdd.engine.StoryRun

public class StoryRun extends 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 saves the elements of the annotation into the instance.
  • Constructor Details

    • StoryRun

      public StoryRun(@NotNull @NotNull Class<?> clazz)
  • Method Details

    • name

      public String name()
    • id

      public String id()
    • description

      public String description()
    • storyTags

      public List<String> storyTags()
    • clazz

      public Class<?> clazz()
    • featureName

      public String featureName()
    • featureId

      public String featureId()
    • featureDescription

      public String featureDescription()
    • featureTags

      public List<String> featureTags()
    • packages

      public Package packages()
    • addScene

      public void addScene(Scene scene)
    • scenes

      public List<Scene> scenes()
    • findSceneByMethodName

      public Scene findSceneByMethodName(String name)