Class CurrentFeature
- java.lang.Object
-
- de.telekom.test.bddwebapp.cucumber.features.CurrentFeature
-
@Component public class CurrentFeature extends Object
Gives access to the current story about the Spring Context- Author:
- Daniel Keiss <daniel.keiss@telekom.de>, Marc Eckart - Initial implementation of current story bean
Copyright (c) 2022 Daniel Keiss, Deutsche Telekom IT GmbH This file is distributed under the conditions of the Apache License, Version 2.0. For details see the file license on the toplevel.
-
-
Constructor Summary
Constructors Constructor Description CurrentFeature()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeScenarioHook(io.cucumber.java.Scenario scenario)StringgetCurrentFeature()static StringgetFeatureNameFromScenario(io.cucumber.java.Scenario scenario)IntegergetTestCaseCountCurrentFeature()voidhandleCustomFeatureAnnotations(io.cucumber.java.Scenario scenario)voidincreaseTestCaseCount(String feature)booleanisBeforeFeature()booleanisRestartBrowserBeforeScenario()
-
-
-
Method Detail
-
isRestartBrowserBeforeScenario
public boolean isRestartBrowserBeforeScenario()
-
isBeforeFeature
public boolean isBeforeFeature()
-
beforeScenarioHook
public void beforeScenarioHook(io.cucumber.java.Scenario scenario)
-
increaseTestCaseCount
public void increaseTestCaseCount(String feature)
-
handleCustomFeatureAnnotations
public void handleCustomFeatureAnnotations(io.cucumber.java.Scenario scenario)
-
getFeatureNameFromScenario
public static String getFeatureNameFromScenario(io.cucumber.java.Scenario scenario)
-
getCurrentFeature
public String getCurrentFeature()
-
getTestCaseCountCurrentFeature
public Integer getTestCaseCountCurrentFeature()
-
-