Package de.qytera.qtaf.cucumber.helper
Class CucumberTestCaseStateHelper
java.lang.Object
de.qytera.qtaf.cucumber.helper.CucumberTestCaseStateHelper
Helper class for extracting information from Cucumber Scenario objects.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<io.cucumber.plugin.event.Result>getStepResults(io.cucumber.core.backend.TestCaseState testCaseState) Get test result object list from a TestCaseState object.static io.cucumber.plugin.event.TestCasegetTestCase(io.cucumber.core.backend.TestCaseState testCaseState) Get TestCase object from TestCaseState object.
-
Method Details
-
getTestCase
public static io.cucumber.plugin.event.TestCase getTestCase(io.cucumber.core.backend.TestCaseState testCaseState) Get TestCase object from TestCaseState object.- Parameters:
testCaseState- TestCaseState object- Returns:
- TestCase object
-
getStepResults
public static List<io.cucumber.plugin.event.Result> getStepResults(io.cucumber.core.backend.TestCaseState testCaseState) Get test result object list from a TestCaseState object.- Parameters:
testCaseState- TestCaseState object- Returns:
- List of test case result objects
-