Package allurium.aspects
Class FormAspects
java.lang.Object
allurium.aspects.FormAspects
Aspect class for intercepting and logging actions performed on 
AbstractForm instances.
 This aspect is specifically designed to enhance form submission methods by logging their execution as steps in Allure reports. It captures the context of the action, including the name and type of the form, and dynamically logs the step result based on the success or failure of the intercepted method.
Features:
- Intercepts the submit()method ofAbstractFormand logs its execution.
- Generates a unique step identifier and uses StepTextProviderto create descriptive step names for Allure reports.
- Handles success and failure scenarios by updating the step's status accordingly.
Example:
 public class LoginForm extends AbstractForm {
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidstepSubmit(org.aspectj.lang.ProceedingJoinPoint invocation) Intercepts and logs the execution of thesubmit()method inAbstractForm.
- 
Constructor Details- 
FormAspectspublic FormAspects()
 
- 
- 
Method Details- 
stepSubmitIntercepts and logs the execution of thesubmit()method inAbstractForm.This method wraps the execution of the intercepted submit()method with Allure step logging. It dynamically generates a step name usingStepTextProviderand records the step's success or failure status.- Parameters:
- invocation- the join point representing the intercepted method
- Throws:
- Throwable- if the intercepted method throws any exception
 
 
-