Class CucumberMetaDataExtractor
- java.lang.Object
-
- com.testomatio.reporter.core.extractor.CucumberMetaDataExtractor
-
- All Implemented Interfaces:
MetaDataExtractor<io.cucumber.plugin.event.TestCase>
public class CucumberMetaDataExtractor extends Object implements MetaDataExtractor<io.cucumber.plugin.event.TestCase>
Extracts test metadata from Cucumber test cases. Supports @title: tags for custom titles and @T[8chars] tags for test IDs.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringUNKNOWN_FILEprotected static StringUNKNOWN_SUITEprotected static StringUNKNOWN_TEST
-
Constructor Summary
Constructors Constructor Description CucumberMetaDataExtractor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestMetadataextractTestMetadata(io.cucumber.plugin.event.TestCase testCase)Extracts test metadata from framework-specific source.
-
-
-
Field Detail
-
UNKNOWN_SUITE
protected static final String UNKNOWN_SUITE
- See Also:
- Constant Field Values
-
UNKNOWN_FILE
protected static final String UNKNOWN_FILE
- See Also:
- Constant Field Values
-
UNKNOWN_TEST
protected static final String UNKNOWN_TEST
- See Also:
- Constant Field Values
-
-
Method Detail
-
extractTestMetadata
public TestMetadata extractTestMetadata(io.cucumber.plugin.event.TestCase testCase)
Description copied from interface:MetaDataExtractorExtracts test metadata from framework-specific source.- Specified by:
extractTestMetadatain interfaceMetaDataExtractor<io.cucumber.plugin.event.TestCase>- Parameters:
testCase- framework-specific test object or wrapper- Returns:
- extracted test metadata
-
-