Class StoryRun

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
    void addScene​(Scene scene)  
    java.lang.Class<?> clazz()  
    java.lang.String description()  
    java.lang.String featureDescription()  
    java.lang.String featureId()  
    java.lang.String featureName()  
    java.util.List<java.lang.String> featureTags()  
    Scene findSceneByMethodName​(java.lang.String name)  
    java.lang.String id()  
    java.lang.String name()  
    java.lang.Package packages()  
    java.util.List<Scene> scenes()  
    java.util.List<java.lang.String> storyTags()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void addScene​(Scene scene)
    • scenes

      public java.util.List<Scene> scenes()
    • findSceneByMethodName

      public Scene findSceneByMethodName​(java.lang.String name)