Class CucumberTestCaseStateHelper

java.lang.Object
de.qytera.qtaf.cucumber.helper.CucumberTestCaseStateHelper

public class CucumberTestCaseStateHelper extends Object
Helper class for extracting information from Cucumber Scenario objects.
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.TestCase
    getTestCase(io.cucumber.core.backend.TestCaseState testCaseState)
    Get TestCase object from TestCaseState object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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