Class CucumberTestResultConstructor
- java.lang.Object
-
- com.testomatio.reporter.core.constructor.AbstractTestResultConstructor
-
- com.testomatio.reporter.core.constructor.CucumberTestResultConstructor
-
- All Implemented Interfaces:
ResultConstructor
public class CucumberTestResultConstructor extends AbstractTestResultConstructor
Constructs test case results from Cucumber test case finished events. Extracts exception details from Cucumber result errors when available.
-
-
Constructor Summary
Constructors Constructor Description CucumberTestResultConstructor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TestResultcreateWithCustomMessage(TestResultWrapper holder)Creates test result using custom message from wrapper.protected TestResultcreateWithExceptionDetails(TestResultWrapper holder)Creates test result using exception details from framework-specific data.protected StringgetCustomMessage(TestResultWrapper holder)Extracts custom message from wrapper.protected StringgetFrameworkName()Returns name of the test framework for logging purposes.protected booleanhasCustomMessage(TestResultWrapper holder)Checks if wrapper contains custom message for the test result.-
Methods inherited from class com.testomatio.reporter.core.constructor.AbstractTestResultConstructor
buildTestResult, constructTestRunResult, createExceptionDetails, logTestResultCreation, validateHolder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.testomatio.reporter.core.constructor.ResultConstructor
extractStackTrace, getStackTrace, isReportableException
-
-
-
-
Method Detail
-
hasCustomMessage
protected boolean hasCustomMessage(TestResultWrapper holder)
Description copied from class:AbstractTestResultConstructorChecks if wrapper contains custom message for the test result.- Specified by:
hasCustomMessagein classAbstractTestResultConstructor
-
getCustomMessage
protected String getCustomMessage(TestResultWrapper holder)
Description copied from class:AbstractTestResultConstructorExtracts custom message from wrapper.- Specified by:
getCustomMessagein classAbstractTestResultConstructor
-
createWithCustomMessage
protected TestResult createWithCustomMessage(TestResultWrapper holder)
Description copied from class:AbstractTestResultConstructorCreates test result using custom message from wrapper.- Specified by:
createWithCustomMessagein classAbstractTestResultConstructor
-
createWithExceptionDetails
protected TestResult createWithExceptionDetails(TestResultWrapper holder)
Description copied from class:AbstractTestResultConstructorCreates test result using exception details from framework-specific data.- Specified by:
createWithExceptionDetailsin classAbstractTestResultConstructor
-
getFrameworkName
protected String getFrameworkName()
Description copied from class:AbstractTestResultConstructorReturns name of the test framework for logging purposes.- Specified by:
getFrameworkNamein classAbstractTestResultConstructor
-
-