Package de.qytera.qtaf.cucumber.helper
Class CucumberFeatureHelper
java.lang.Object
de.qytera.qtaf.cucumber.helper.CucumberFeatureHelper
Helper class for extracting information from Cucumber features.
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.cucumber.messages.types.FeaturegetFeature(io.cucumber.core.gherkin.Feature iFeature) Get Feature object from Feature object.static StringgetRelativeFeatureFilePath(String absolutePath) Get feature file path relative to project's source directory.
-
Method Details
-
getRelativeFeatureFilePath
Get feature file path relative to project's source directory.- Parameters:
absolutePath- The absolute path to the feature file- Returns:
- The relative path of the feature file
-
getFeature
public static io.cucumber.messages.types.Feature getFeature(io.cucumber.core.gherkin.Feature iFeature) Get Feature object from Feature object.- Parameters:
iFeature- Feature interface object- Returns:
- Feature object
-