Package com.privalia.qa.aspects
Class LogTagAspect
- java.lang.Object
-
- com.privalia.qa.aspects.LogTagAspect
-
public class LogTagAspect extends Object
Adds the possibility of printing the comments from the feature files as info level messages when executing. Using #log <message> in a feature file, will print the message in the CLI when executing the test The log message is captured right before is printed on console and altered using theReplacementAspect
- Author:
- José Fernández
-
-
Constructor Summary
Constructors Constructor Description LogTagAspect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuilder
beforeLogStep(org.aspectj.lang.ProceedingJoinPoint pjp, String comment)
protected void
logStep(String comment)
-
-
-
Method Detail
-
logStep
protected void logStep(String comment)
-
beforeLogStep
public StringBuilder beforeLogStep(org.aspectj.lang.ProceedingJoinPoint pjp, String comment) throws Throwable
- Throws:
Throwable
-
-