Package com.privalia.qa.aspects
Class ifStatementAspect
- java.lang.Object
-
- com.privalia.qa.aspects.ifStatementAspect
-
public class ifStatementAspect extends Object
Aspect to control the conditional execution of steps based on a given expression.- Author:
- Jose Fernandez
- See Also:
UtilsGSpec.ifStamenetBeginBlock(String)
-
-
Constructor Summary
Constructors Constructor Description ifStatementAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aroundReplacementArguments(org.aspectj.lang.ProceedingJoinPoint pjp, io.cucumber.core.backend.TestCaseState state)
void
aroundSetResult(org.aspectj.lang.JoinPoint jp, Instant timeInstant, io.cucumber.plugin.event.TestCase testCase, io.cucumber.plugin.event.TestStep testStep, io.cucumber.plugin.event.Result result)
protected void
replacementArguments(io.cucumber.core.backend.TestCaseState state)
This pointcut is triggered right before the step is executedprotected void
setResult(Instant timeInstant, io.cucumber.plugin.event.TestCase testCase, io.cucumber.plugin.event.TestStep testStep, io.cucumber.plugin.event.Result result)
This pointcut is triggered right after the creation of the TestStepFinished event.
-
-
-
Method Detail
-
replacementArguments
protected void replacementArguments(io.cucumber.core.backend.TestCaseState state)
This pointcut is triggered right before the step is executed- Parameters:
state
- state
-
aroundReplacementArguments
public void aroundReplacementArguments(org.aspectj.lang.ProceedingJoinPoint pjp, io.cucumber.core.backend.TestCaseState state) throws Throwable
- Throws:
Throwable
-
setResult
protected void setResult(Instant timeInstant, io.cucumber.plugin.event.TestCase testCase, io.cucumber.plugin.event.TestStep testStep, io.cucumber.plugin.event.Result result)
This pointcut is triggered right after the creation of the TestStepFinished event. If the step was not executed the status of the result is changed to "SKIPPED", so it is colored in a different way in the console and in reports- Parameters:
timeInstant
- timeInstanttestCase
- testCasetestStep
- testStepresult
- result
-
aroundSetResult
public void aroundSetResult(org.aspectj.lang.JoinPoint jp, Instant timeInstant, io.cucumber.plugin.event.TestCase testCase, io.cucumber.plugin.event.TestStep testStep, io.cucumber.plugin.event.Result result) throws NoSuchFieldException, IllegalAccessException
-
-