Class StepInformationLogMessage
java.lang.Object
de.qytera.qtaf.core.log.model.message.LogMessage
de.qytera.qtaf.core.log.model.message.StepInformationLogMessage
- Direct Known Subclasses:
CucumberStepLogMessage
Log message for called steps.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis data class holds the information from the Step annotation.static classData class for step parameter information.Nested classes/interfaces inherited from class de.qytera.qtaf.core.log.model.message.LogMessage
LogMessage.Status -
Field Summary
Fields inherited from class de.qytera.qtaf.core.log.model.message.LogMessage
abstractScenarioId, assertions, end, error, featureId, level, message, scenarioId, start, status, uuid -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidaddStepParameter(String name, T value) Add a generic step parameter.Get methodName.Get step result.Get screenshotAfter.Get screenshotBefore.getStep()Get step annotation.The list of the step's method parameters.getTYPE()Get type.setMethodName(String methodName) Set methodName.Set step result.setScreenshotAfter(String screenshotAfter) Set screenshotAfter.setScreenshotBefore(String screenshotBefore) Set screenshotBefore.Set step annotation.setStepDescription(String stepDescription) Set step description.setStepName(String stepName) Set step name.voidsetStepParameters(List<StepInformationLogMessage.StepParameter> stepParameters) The list of the step's method parameters.Methods inherited from class de.qytera.qtaf.core.log.model.message.LogMessage
addAssertion, computeStatus, getAbstractScenarioId, getAssertions, getDuration, getEnd, getError, getFeatureId, getLevel, getMessage, getScenarioId, getStart, getStatus, getUuid, hasError, hasFailed, hasPassed, isPending, isSkipped, setAbstractScenarioId, setAssertions, setEnd, setError, setError, setFeatureId, setLevel, setMessage, setScenarioId, setStart, setStatus
-
Constructor Details
-
StepInformationLogMessage
Constructor.- Parameters:
methodName- step namemessage- log message
-
-
Method Details
-
getStep
Get step annotation.- Returns:
- step annotation
-
setStep
Set step annotation.- Parameters:
step- step annotation- Returns:
- this
-
setStepName
Set step name.- Parameters:
stepName- step name- Returns:
- this
-
setStepDescription
Set step description.- Parameters:
stepDescription- step description- Returns:
- this
-
addStepParameter
Add a generic step parameter.- Type Parameters:
T- the type of the value object- Parameters:
name- the name of the parametervalue- the value of the parameter
-
getResult
Get step result.- Returns:
- step result
-
setResult
Set step result.- Parameters:
result- step result- Returns:
- this
-
getTYPE
Get type.- Returns:
- type
-
getMethodName
Get methodName.- Returns:
- methodName
-
setMethodName
Set methodName.- Parameters:
methodName- MethodName- Returns:
- this
-
getScreenshotBefore
Get screenshotBefore.- Returns:
- screenshotBefore
-
setScreenshotBefore
Set screenshotBefore.- Parameters:
screenshotBefore- ScreenshotBefore- Returns:
- this
-
getScreenshotAfter
Get screenshotAfter.- Returns:
- screenshotAfter
-
setScreenshotAfter
Set screenshotAfter.- Parameters:
screenshotAfter- ScreenshotAfter- Returns:
- this
-
getStepParameters
The list of the step's method parameters. -
setStepParameters
The list of the step's method parameters.
-