Package allurium.aspects
Class TabsAspects
java.lang.Object
allurium.aspects.TabsAspects
Aspect class responsible for intercepting method executions related to tab selection in
AbstractTabs.
This class enhances tab selection operations by wrapping them within an Allure step for better reporting. The intercepted method (`select(String)`) logs the selected tab's name and integrates the step into the Allure test report.
Purpose:
- Automatically logs tab selection steps in Allure reports.
- Enhances visibility of test execution by associating the selected tab with its parent component.
Usage:
- Applied automatically through AspectJ to methods matching the execution pattern.
- Intercepts the
select(String)method ofAbstractTabsimplementations.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstepSelect(org.aspectj.lang.ProceedingJoinPoint invocation) Wraps theAbstractTabs.select(String)method execution inside an Allure step for improved reporting.
-
Constructor Details
-
TabsAspects
public TabsAspects()
-
-
Method Details
-
stepSelect
Wraps theAbstractTabs.select(String)method execution inside an Allure step for improved reporting.This method intercepts calls to `select(String)`, retrieves the target tab name, and logs the step in Allure using
AllureStepHelper.runAllureAspectStep(ProceedingJoinPoint, String).Behavior:
- Intercepts the method execution before it runs.
- Extracts the selected tab's name and the parent component's name.
- Formats the step text using
StepTextProvider. - Executes the original method inside the Allure step.
Usage:
This method call will be automatically wrapped inside an Allure step.tabs.select("Settings");- Parameters:
invocation- the intercepted method call to `select(String)`- Throws:
Throwable- if the underlying method execution fails
-