public interface FeatureHandler
The return values are in ibello's own format. The Feature class describes a Cucumber feature
with scenarios and steps. Child steps are also loaded from step definition files.
| Modifier and Type | Method and Description |
|---|---|
boolean |
existsFeatureFile(String relativePath)
Checks if a feature file exists.
|
Feature |
loadFeature(String relativePath)
Loads a single Cucumber feature file.
|
List<Feature> |
loadFeatures()
Loads all Cucumber features files.
|
List<Feature> |
loadFeatures(Pattern relativePath)
Loads multiple Cucumber features files.
|
List<Feature> |
loadFeaturesWithTags(String... tags)
Loads multiple Cucumber features files.
|
void |
saveFeature(Feature feature)
Saves the given feature into a gherkin feature file.
|
Feature loadFeature(String relativePath) throws BDDException
relativePath - the path to the file, relative to the "features" directory of the projectBDDException - if there was an error during loading the fileList<Feature> loadFeatures(Pattern relativePath) throws BDDException
relativePath - regular expression for the path to the file (which is relative to the "features" directory of the project)BDDException - if there was an error during loading a fileList<Feature> loadFeatures() throws BDDException
BDDException - if there was an error during loading a fileList<Feature> loadFeaturesWithTags(String... tags) throws BDDException
tags - the tags of the loaded featuresBDDException - if there was an error during loading a fileboolean existsFeatureFile(String relativePath)
relativePath - the path to the file, relative to the "features" directory of the projecttrue if the given file exists, false otherwisevoid saveFeature(Feature feature) throws BDDException
BDDDocument.setFullPath(String) or BDDDocument.setRelativePath(String)
method.feature - the feature we want to saveBDDException - if there was an error during saving the file or the file path is not specifiedCreated by Kornél Simon, 2022