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 enumStep status.static classThis data class holds the information from the Step annotation.static classData class for step parameter information. -
Field Summary
Fields inherited from class de.qytera.qtaf.core.log.model.message.LogMessage
abstractScenarioId, featureId, level, message, scenarioId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssertion(AssertionLogMessage assertion) Add an assertion to the list.<T> voidaddStepParameter(String name, T value) Add a generic step parameter.voidComputes the status of the test step.Get assertions.longGet duration.getEnd()Get end.getError()Get step error.Get methodName.Get step result.Get screenshotAfter.Get screenshotBefore.getStart()Get start.Get status.getStep()Get step annotation.The list of the step's method parameters.getTYPE()Get type.getUuid()Get uuid.booleanhasError()Check if an error occurred.booleanChecks if step has failed.booleanChecks if step has passed.booleanChecks if step is pending.booleanChecks if step is skipped.setAssertions(List<AssertionLogMessage> assertions) Set list of assertions.Set end.setError(ThrowableWrapper error) Set step error.Set step error.setMethodName(String methodName) Set methodName.Set step result.setScreenshotAfter(String screenshotAfter) Set screenshotAfter.setScreenshotBefore(String screenshotBefore) Set screenshotBefore.Set start.Set status.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
getAbstractScenarioId, getFeatureId, getLevel, getMessage, getScenarioId, setAbstractScenarioId, setFeatureId, setLevel, setMessage, setScenarioId
-
Constructor Details
-
StepInformationLogMessage
Constructor.- Parameters:
methodName- step namemessage- log message
-
-
Method Details
-
getUuid
Get uuid.- Returns:
- uuid
-
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
-
getStatus
Get status.- Returns:
- status Status
-
computeStatus
public void computeStatus()Computes the status of the test step. -
hasFailed
public boolean hasFailed()Checks if step has failed.- Returns:
- true if step has failed, false otherwise
-
hasPassed
public boolean hasPassed()Checks if step has passed.- Returns:
- true if step has passed, false otherwise
-
isPending
public boolean isPending()Checks if step is pending.- Returns:
- true if step is pending, false otherwise
-
isSkipped
public boolean isSkipped()Checks if step is skipped.- Returns:
- true if step is skipped, false otherwise
-
getResult
Get step result.- Returns:
- step result
-
setResult
Set step result.- Parameters:
result- step result- Returns:
- this
-
getError
Get step error.- Returns:
- step error
-
hasError
public boolean hasError()Check if an error occurred.- Returns:
- true if an error occurred during method execution, false otherwise
-
setError
Set step error.- Parameters:
error- step error- Returns:
- this
-
setError
Set step error.- Parameters:
error- step error- Returns:
- this
-
getTYPE
Get type.- Returns:
- type
-
getMethodName
Get methodName.- Returns:
- methodName
-
setMethodName
Set methodName.- Parameters:
methodName- MethodName- Returns:
- this
-
setStatus
Set status.- Parameters:
status- Status- Returns:
- this
-
getStart
Get start.- Returns:
- start
-
setStart
Set start.- Parameters:
start- Start- Returns:
- this
-
getEnd
Get end.- Returns:
- end
-
setEnd
Set end.- Parameters:
end- End- Returns:
- this
-
getDuration
public long getDuration()Get duration.- Returns:
- duration
-
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
-
getAssertions
Get assertions.- Returns:
- list of assertions
-
setAssertions
Set list of assertions.- Parameters:
assertions- list of assertions- Returns:
- this
-
addAssertion
Add an assertion to the list.- Parameters:
assertion- Assertion- Returns:
- this
-
getStepParameters
The list of the step's method parameters. -
setStepParameters
The list of the step's method parameters.
-