@After("setValueToAnyField() && withParameterAnnotation()")
public void parameterValueChanged(JoinPoint joinPoint) {
try {
FieldSignature fieldSignature = (FieldSignature) joinPoint.getSignature();
Parameter parameter = fieldSignature.getField().getAnnotation(Parameter.class);
String name = parameter.value().isEmpty() ? fieldSignature.getName() : parameter.value();
Allure.LIFECYCLE.fire(new AddParameterEvent(name, joinPoint.getArgs()[0].toString()));
} catch (Exception ignored) {
}
}