Class CucumberUtils


  • public class CucumberUtils
    extends java.lang.Object
    Author:
    Christoph Deppisch
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String extractFeatureFileName​(io.cucumber.java.Scenario scenario)
      Extract feature file name from given scenario.
      static java.lang.String extractFeatureFileName​(java.lang.String uri)
      Extract feature file name from given uri.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • extractFeatureFileName

        public static java.lang.String extractFeatureFileName​(java.lang.String uri)
        Extract feature file name from given uri. This utility method extracts the feature file name from the given file path.
        Parameters:
        uri -
        Returns:
      • extractFeatureFileName

        public static java.lang.String extractFeatureFileName​(io.cucumber.java.Scenario scenario)
        Extract feature file name from given scenario. The scenario id usually holds the full qualified feature file path. This utility method extracts the feature file name from this path.
        Parameters:
        scenario -
        Returns: