Class Feature

java.lang.Object
io.karatelabs.gherkin.Feature

public class Feature extends Object
  • Field Details

  • Constructor Details

    • Feature

      public Feature(io.karatelabs.common.Resource resource)
  • Method Details

    • read

      public static Feature read(String path)
    • read

      public static Feature read(File file)
    • read

      public static Feature read(io.karatelabs.common.Resource resource)
    • getResource

      public io.karatelabs.common.Resource getResource()
    • getPackageQualifiedName

      public String getPackageQualifiedName()
    • getKarateJsonFileName

      public String getKarateJsonFileName()
    • isBackgroundPresent

      public boolean isBackgroundPresent()
    • getNameAndDescription

      public String getNameAndDescription()
    • getNameForReport

      public String getNameForReport()
    • findStepByLine

      public Step findStepByLine(int line)
    • getSetup

      public Scenario getSetup(String name)
    • addSection

      public void addSection(FeatureSection section)
    • addTag

      public void addTag(Tag tag)
    • getTags

      public List<Tag> getTags()
    • setTags

      public void setTags(List<Tag> tags)
    • getSection

      public FeatureSection getSection(int sectionIndex)
    • getLine

      public int getLine()
    • setLine

      public void setLine(int line)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getBackground

      public Background getBackground()
    • setBackground

      public void setBackground(Background background)
    • getSections

      public List<FeatureSection> getSections()
    • setSections

      public void setSections(List<FeatureSection> sections)
    • toString

      public String toString()
      Overrides:
      toString in class Object